# This program executes division with remainder. # Import (possibly) necessary modules. import math # Tell the user what this program does. print 'This program gives division with remainder for a divided by b' print 'where a and b are input.' # Take the numbers from the user. a = input('Enter the number a: ') b = input('Enter the number b: ') if (type(a) != int) or (type(b) != int) : print 'U not entering integers!!!!!!!!!!!!! What are wrong with you?' raise SystemExit #if (type(a) != int) : # print 'You did not enter an integer for the value of a.' # raise SystemExit #if (type(b) != int) : # print 'You did not enter an integer for the value of b.' # raise SystemExit # Do the calculation. quotient = a/b remainder = a%b # Display the output. print 'The value of', a ,'divided by', b ,'is' print quotient ,'with remainder', remainder