0

Write a program that produce the following output:

There are 60 seconds in a minute There are xxx seconds in an hour There are yyy seconds in a day There are zzz seconds in a year note: In place of XXX, YYY and ZZZ, the program should calculate and display the appropriate number in seconds

11th Feb 2017, 3:27 PM
John Ugochukwu
John Ugochukwu - avatar
3 Answers
+ 7
THERE ARE 60 SECONDS IN A MINUTE Tsk. Have your program store values into variables. E.g. int second = 1; int minute = 60*second; int hour = 60*minute; int day = 24*hour; int year = 365*day; There, you get everything in seconds.
11th Feb 2017, 2:59 PM
Hatsy Rei
Hatsy Rei - avatar
0
your questions is not clear john we will like you to be more specific because your ans is true there are 60 seconds in a minute if thats your question
11th Feb 2017, 3:00 PM
EMMANUEL NUOTAH TUONUO DERY
EMMANUEL NUOTAH TUONUO DERY - avatar
0
thanks... Hatsy Rei
13th Feb 2017, 10:09 AM
John Ugochukwu
John Ugochukwu - avatar