@@ -18,7 +18,7 @@ meters. Use symbolic constants to represent the various conversion factors.
1818There are 60 seconds of arc to a minute and 60 minutes of arc to a degree; represent these values with symbolic constants.
1919You should use a separate variable for each input value.
2020A sample run should look like this:
21- ```c
21+ ```makefile
2222 Enter a latitude in degrees, minutes, and seconds:
2323 First, enter the degrees: 37
2424 Next, enter the minutes of arc: 51
@@ -31,7 +31,7 @@ value (use type long, or, if available, long long) and that then displays the eq
3131hours, minutes,and seconds. Use symbolic constants to represent
3232the number of hours in the day, the number of minutes in an hour, and the number
3333of seconds in a minute. The output should look like this:
34- ```c
34+ ```makefile
3535 Enter the number of seconds: 31600000
3636 31600000 seconds = 365 days, 17 hours, 46 minutes, 40 seconds
3737 ```
@@ -41,7 +41,7 @@ the current population of the U.S. (or of some other nation of your choice). Sto
4141the information in variables of type long long.
4242Have the program display the percent that the U.S. (or other nation’s) population is of the world’s population.
4343The output should look something like this:
44- ```
44+ ```makefile
4545 Enter the world's population: 6898758899
4646 Enter the population of the US: 310783781
4747 The population of the US is 4.50492% of the world population.
0 commit comments