Skip to content

Commit ae3d157

Browse files
authored
Merge branch 'master' into fix-typos
2 parents a5aada0 + 4dd10f2 commit ae3d157

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Money Check
2+
# Write a program that asks for a person's
3+
# amount of money (floating point).
4+
# If the person's amount of money is 0,
5+
# print "Bankrupt". If not, print "Not Bankrupt"
6+
# If the person's amount of money is
7+
# greater than 1000.0, then print "Rich".
8+
9+
# Write your code here
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Money Check
2+
# Write a program that asks for a person's
3+
# amount of money (floating point).
4+
# If the person's amount of money is 0,
5+
# print "Bankrupt". If not, print "Not Bankrupt"
6+
# If the person's amount of money is
7+
# greater than 1000.0, then print "Rich".
8+
9+
money = float(input("Enter the amount of money you have: $"))
10+
11+
if money == 0:
12+
print("Bankrupt")
13+
else:
14+
print("Not Bankrupt")
15+
16+
if money > 1000:
17+
print("Rich")

0 commit comments

Comments
 (0)