Computer Science, asked by rahulkumar12ec, 6 months ago

how to make a simple calculator using python I have tried many times but I am not able to do so can you please help me I will mark you as brainlist​

Answers

Answered by shuklaabhyuday925
1

Answer

Explanation:

num1 = int(input("Enter first number:"))

num2 = int(input("Enter second number:"))

text = input("which mathematics operation you want?")

if add or sum in text:

     sum1 = num1+num2

     print(sum1)

elif multi in text :

  mult1 = num1*num2

  print(multi1)

elif divide or division text:

   if num2 > num1:

       Q= num2/num1

       R = num2%num1

       print("q=",Q,"r"=,R)

   else:

       Q= num2/num2

       R = num1%num2

       print("q=",Q,"r"=,R)

Answered by Himanshu2504
1

Answer:

I have told you the answer please go

Similar questions