102
20. 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("The amounts of seconds", time)
If the input given is in this order : 1, 2, 3, 4
Type C: Programming Practice/Knowledge based Questions??
Answers
Answered by
0
Answer:
93784
Explanation:
days=1 day has how many minutes , seconds and hours is calculated
hours= given hours is mulipled with minutes and seconds
minutes=total seconds is calculated
seconds=seconds calculated
total time is calculated by sum of days,minutes,hours,seconds by giving output
Similar questions