diff --git a/modulus .py b/modulus .py new file mode 100644 index 0000000..541914d --- /dev/null +++ b/modulus .py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# coding: utf-8 + +# In[10]: + + +while True:# If the while condition is true if block is executed + a=input("Do you want to continue or not(y/n)?") + if a.upper()=='Y':# if the user pass 'Y' the following statement is executed + break +a=int(input('FIRst number is:')) #first number +b=int(input('second number is:')) #second number +print(a,"%",b,"=",a%b)# perform a % b +print(b,"%",a,"=",b%a) # perform b % a + + +# In[ ]: + + + +