+ 2

# Ever wondered how many seconds are there in a month?

Write a program to calculate and output the answer.

7 Answers

+ 3

#include<studio.h>
int main(){
int seconds = 60*(60*(30*24));
return 0;
}

+ 2

Please use relevant tags too. To specify the language

+ 2

Hi! it's very easy. I think you can handle the task if you work a little hard for it. so, to solve this problem, you need to get any calendar and clock with a second hand. and conduct research to solve several problems:
1. calculate how many seconds in a minute.
2. calculate the number of minutes in an hour.
3. calculate the number of hours in a day.
4. calculate the number of days in a month.
Remember! that the number of days in a month can be different (if you live on the Gregorian or Julian calendar)

+ 1

Parth Shendge
No need to use unnecessary brackets.
You can simply do
seconds = 60 * 60 * 30 * 24;

0

bijoy rongphar Show your attempts.

- 1

Plz show me how to calculate this in python

- 2

Let me try