225k views
14 votes
Input two numbers and print their sum products difference division and remainder​

1 Answer

4 votes


\tt n1=int(input(


\tt n2=int(input(


\tt sum=n1+n2


\tt diff=n1-n2


\tt pdt=n1*n2


\tt div=n1//n2


\tt rem=n1\%n2


\tt print(


\tt print(


\tt print(


\tt print (


\tt print(

Output:-

Enter first no:4

Enter second no:3

Sum=7

Difference=1

Product=12

Division=1

Remainder=1

User Newts
by
6.8k points