Computer Science

Predict the output of the following code :


days = int (input ("Input days : ")) * 3600 * 24
hours = int(input("Input hours: ")) * 3600 
minutes = int(input("Input minutes: ")) * 60 
seconds = int(input("Input seconds: ")) 
time = days + hours + minutes + seconds 
print("Total number of seconds", time)

If the input given is in this order : 1, 2, 3, 4

Python

Python Funda

28 Likes

Answer

Output

Input days : 1
Input hours: 2
Input minutes: 3
Input seconds: 4
Total number of seconds 93784

Answered By

16 Likes


Related Questions