252,634 views
44 votes
44 votes
Input two numbers and print their sum products difference division and remainder​

User Godfrzero
by
3.1k points

1 Answer

20 votes
20 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 Manish Trivedi
by
3.0k points