-
Notifications
You must be signed in to change notification settings - Fork 854
Expand file tree
/
Copy pathmain2.py
More file actions
81 lines (62 loc) · 1.39 KB
/
main2.py
File metadata and controls
81 lines (62 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# weight,height=map(eval,input().split())
# bmi=weight/(height*height)
# if bmi>0:
# print(bmi)
# else :
# print("invalid input")
# p=float(input())
# r=float(input())
# t=float(input())
# SI = (p*r*t)/100
# if SI < 0:
# print("invalid input")
# else:
# print(SI)
# import math
# radius=float(input())
# area=math.pi*radius**2
# if radius<0:
# print("input cant be a negative number")
# else:
# print(area)
# distance,time=map(eval,input().split())
# acc=(2*distance)/(time**2)
# if distance <0 or time <0 :
# print ("invalid input")
# else:
# print(acc)
# rows = int(input())
# for i in range(0,rows):
# if rows<0:
# print('invalid input')
# else:
# print(' ' * (rows - i - 1) + '* ' * (i + 1))
# km = float(input())
# miles = 0.62*km
# if km<0:
# print("wrong input")
# else:
# print(miles)
# force,distance=map(eval,input().split())
# joule=force*distance
# if force <0 or distance <0 :
# print("wrong input")
# else:
# print(joule , "joules")
# import math
# math.sqrt
# x1 = int(input())
# x2 = int(input())
# y1 = int(input())
# y2 = int(input())
# point_a = ((x2-x1)**2)
# point_b = ((y2-y1)**2)
# d=(math.sqrt(point_a+point_b))
# print(d)
cents = float(input())
dollars = cents // 100
cents %= 100
quarters = cents // 25
cents %= 25
pennies = cents % 5
print(f"Dollars: {dollars}, Quarters: {quarters}, Pennies: {pennies}")