Computer Science, asked by emperor3417, 4 months ago

write a python program to input time in minutes and print the result in hours and seconds​

Answers

Answered by imtiyazallam
1

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