- 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

23rd Feb 2021, 4:24 PM
Ruby Gana
Ruby Gana - avatar
17 Respuestas
- 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
23rd Feb 2021, 4:37 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
+ 8
n=int(input("enter the day ")) Print(60*60*24*n) Output:- enter the day 30 2592000
4th Jun 2021, 4:01 AM
Teza X
+ 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
23rd Feb 2021, 4:37 PM
Kingsley Aham
Kingsley Aham - avatar
+ 2
var day = 24; var hour = 60; var minute = 60; var seconds = ((minute * hour) * day) * 30; console.log(seconds);
4th May 2023, 5:57 AM
Fariz Husain Albar
0
Ruby Gana be language specific
23rd Feb 2021, 4:27 PM
Kingsley Aham
Kingsley Aham - avatar
0
Okk
23rd Feb 2021, 4:38 PM
Ruby Gana
Ruby Gana - avatar
0
I got the answer this code is right.
24th Apr 2021, 4:35 AM
Vikneshwary Pasupathi
Vikneshwary Pasupathi - avatar
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)
15th Sep 2021, 10:19 PM
MORTEZA ABDOLLAHI
MORTEZA ABDOLLAHI - avatar
0
print(" " , 60*60*24*30)
22nd Sep 2021, 10:05 AM
Madhavareddy
Madhavareddy - avatar
0
@Madhavareddy care to explain how did you do it?
24th Sep 2021, 7:24 AM
Msawenkosi Zuma
0
print(" " , 60*60*24*30)
4th Dec 2021, 5:50 PM
Md. Rakibul Islam
Md. Rakibul Islam - avatar
0
sihour = (60 *60) siday = (sihour*24) simonth = (siday*30) print(simonth)
7th Feb 2022, 12:37 PM
Abrar Ahmed
Abrar Ahmed - avatar
0
mathematically; 60s = 1mins. 6mins. = 1hr. 1hr. = (60*60)s = 3600s 1day = 24hrs 1day = 24 * 3600s = 86400s 30days = (30days/1day) * 86400s 30days = 2592000
4th May 2022, 7:42 AM
Perfect Morkli
Perfect  Morkli - avatar
- 1
Anyone tell
23rd Feb 2021, 4:24 PM
Ruby Gana
Ruby Gana - avatar
23rd Feb 2021, 4:27 PM
Ruby Gana
Ruby Gana - avatar