Computer Science, asked by VanilaSky, 6 months ago

WAP that asks the user to input time in minutes and then converts it into hours and remaining minutes (in PYTHON)​

Answers

Answered by valeriy69
3

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

import math

mins = int(input("enter mins: "))

time = mins / 60

minutes = int(math.modf(time)[0] * 60)

hours = str(time).split(".")[0]

print(f"{hours}hr {minutes} min")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions