CodeSolved

Solved Programming Questions & Exercises

Conversion

Practice Easy 1234/ Download 736 Views

Write a program that numerals asHoursReceive and make it toDay and hourTurn

For example:

Input: 80
3 days, 8 hours

17 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
hours=int(input("enter the count of hours>>>>>"))
D=int(hours/24)
H=int(hours%24)
print(D , "days" , "&" , H , "hours")
Shina Download Python
import time
hou=int(input('hours:  '))
d=hou/24
d=int(d)
h=hou%24
print(d,'days  ',h,'hours')
s=input('khoroog')
Saleh1391 Download Python
def convert_hours_to_days_and_hours(hours):
    days = hours // 24
    remaining_hours = hours % 24
    return f"{days} days, {remaining_hours} hours"

input_hours = 80
result = convert_hours_to_days_and_hours(input_hours)
print(result)
Ai Download Python
while True:
 hour = int(input("Exit press -1 to Continue Entre your number :"))
 if hour < 0 :
   break
 d = 24
 day = hour // d
 h = hour % d
 print(f"day: {day}")
 print(f"hour:{h}")
print("Program Exit")
Sumy.amiri Download Python
hur=int(input("hur:"))
d=(int(hur/24))
h=hur%24
print('d {} , h {}'.format(d , h))

This is the easiest way possible

hour = int(input("چند ساعت : "))
a = hour // 24
b = hour % 24
print('day',a)
print('hour',b)
number = int(input("please enter a number(hour): "))
day = number // 24
saat = number % 24
print(f"{number} hours = {day} day and {saat} hours")
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close