Q. 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
Answer =
Output:-
Input days: 1
Input hours: 2
Input minutes: 3
Input seconds: 4
The amounts of seconds 93784
bhai tum badhia ho
ReplyDeleteThank You : )
DeleteAapki wajah se mai bal bal bach gya
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )