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
English,
3 months ago
Geography,
3 months ago
Social Sciences,
6 months ago
Physics,
6 months ago
Social Sciences,
10 months ago
Geography,
10 months ago