
or on four separate lines as follows:
int seconds;
int minutes;
int hours;
int total;
C doesn’t care how you lay it out, so you should use whichever method makes your code most
readable for you.You might split conceptually—variables that all refer to one function on one line and
to another function on a second line—or by any other method you like.
After you’ve declared your variables, you can assign them. Assignment gives a value of the appro-
priate type to the variable you have even a declaration. In this case, the appropriate type is integer, so
we assign each variable name its initial value as follows:
seconds = 60;
minutes = 60;
hours = 24;
So before ...