From aae22a1d7d19a501e94671efb4fdc9961fb168b7 Mon Sep 17 00:00:00 2001 From: parth krishnan <69578065+Parthkrishnan@users.noreply.github.com> Date: Fri, 2 Oct 2020 20:54:50 +0530 Subject: [PATCH] Update assignment5.c --- Assignment-05/assignment5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assignment-05/assignment5.c b/Assignment-05/assignment5.c index 1f6a03e..9295bc8 100644 --- a/Assignment-05/assignment5.c +++ b/Assignment-05/assignment5.c @@ -1,5 +1,5 @@ #include - +#include int main(void) { @@ -7,7 +7,7 @@ int main(void) float seconds; //get value for var - printf("Enter the amount of seconds: "); + printf("Enter the amount of seconds:\n"); scanf("%f", &seconds); //initialize our arithmetic vars @@ -24,7 +24,7 @@ int main(void) //remaining_seconds is simply what's leftover remaining_seconds = (seconds - (hours * 3600) - (mins * 60)); - printf("%0.0f seconds is equal to %0.0f hours, %0.0f minutes, and %0.0f seconds.", seconds, hours, mins, remaining_seconds); + printf("\n%0.0f seconds is equal to %0.0f hours, %0.0f minutes, and %0.0f seconds.", seconds, hours, mins, remaining_seconds); return 0; }