- 15

# Ever wondered how many seconds are there in a month? Write a program to calculate and output the answer.

Plz anyone tell how will solve the problem

15 Answers

- 7

Months have varying number of days, so there are multiple answers.
Surely you can figure out the formula for second in a day. Multiply that by the number of days to get the result

+ 8

n=int(input("enter the day "))
Print(60*60*24*n)
Output:- enter the day 30
2592000

+ 3

Ruby Gana check this out
print(60 * 60 * 24 * 30)
since the average number of days in a month is 30 you multiply it with30

+ 2

var day = 24;
var hour = 60;
var minute = 60;
var seconds = ((minute * hour) * day) * 30;
console.log(seconds);

0

Ruby Gana be language specific

0

Okk

0

I got the answer this code is right.

0

days_month = 30
hours_day = 24
minutesـhour = 60
seconds_minutes = 60
a_hour_seconds = (minutesـhour * seconds_minutes)
a_day_seconds = (a_hour_seconds * hours_day)
a_month_seconds = (a_day_seconds * days_month)
# answer is : \
print(a_month_seconds)

0

print(" " , 60*60*24*30)

0

@Madhavareddy care to explain how did you do it?

0

print(" " , 60*60*24*30)

0

sihour = (60 *60)
siday = (sihour*24)
simonth = (siday*30)
print(simonth)

0

mathematically;
60s = 1mins.
6mins. = 1hr.
1hr. = (60*60)s = 3600s
1day = 24hrs
1day = 24 * 3600s = 86400s
30days = (30days/1day) * 86400s
30days = 2592000

- 1

Anyone tell

- 3