fork download
  1. #arithmetic progression
  2. n=("enter first no.")
  3. N=("enter second no.")
  4. A=n+N
  5. D=(n-N)
  6. P=n*N
  7. Q=n/N
  8. F=n//N
  9. M=n%N
  10. S=n**2
  11. print("the sum is",A)
  12. print("the diff is",D)
  13. print("the product is",P)
  14. print("the quotient is",Q)
  15. print("the floor division is",F)
  16. print("the remainder is",M)
  17. print("the square of first no. is",S)
  18.  
  19.  
  20.  
  21.  
  22.  
Success #stdin #stdout 0.04s 25396KB
stdin
Standard input is empty
stdout
#arithmetic progression
n=("enter first no.")
N=("enter second no.")
A=n+N
D=(n-N)
P=n*N
Q=n/N
F=n//N
M=n%N
S=n**2
print("the sum is",A)
print("the diff is",D)
print("the product is",P)
print("the quotient is",Q)
print("the floor division is",F)
print("the remainder is",M)
print("the square of first no. is",S)