May-23-2018, 03:31 AM
Need help for the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
numerator = int ( input ( "Enter a numerator: " )) denominator = int ( input ( "Enter denominator: " )) # Use a while loop here to repeatedly ask the user for # a denominator for as long as the denominator is 0 # (or, put another way, until the denominator is not # equal to 0). if numerator / denominator * denominator = = numerator: print "Divides evenly!" else : print "Doesn't divide evenly." |