File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" )
You can’t perform that action at this time.
0 commit comments