write a python program to input time in minutes and print the result in hours and seconds
Answers
Answered by
2
Answer:
Answer:
I think you meant: Write a python program to input time in minutes and print the result in hours and minutes
- Program:
min1 = int(input("Enter time in min: "))
hour = min1 / 60
min = min % 60
print(min1, "=", hour, "hours and",min, "minutes")
If you mean to convert minutes to hour and minutes to second
- Program:
min = int(input("Enter time in min: "))
hour = min / 60.0
second = min * 60
print(min, "=", hour, "hours")
print(min, "=", sum, "seconds")
Similar questions
Physics,
3 months ago
Social Sciences,
3 months ago
Math,
3 months ago
Social Sciences,
7 months ago
Physics,
7 months ago
Social Sciences,
11 months ago
Geography,
11 months ago