(adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-2960223314593660", enable_page_level_ads: true }); Program to convert time in seconds to minutes and hours - TecGlance

Header Ads

Program to convert time in seconds to minutes and hours



======= CONVERT TIME INTO MINUTE AND SECONDS=========



 second=input("Enter Time in Seconds :")

 s=second%60

 minute=second/60

 m=minute%60

 h=minute/60

 print "Time is ",h," Hours ",m," Minute ",s," Seconds"





=================== OUTPUT = =====================



 Enter Time in Seconds :8406

 Time is  2  Hours  20  Minute  6  Seconds



===================================================

No comments

Powered by Blogger.