+ 1
Write a program to perform addition, subtraction, exponent, division on two variables taking input from user.
Please give a hint or instead do this one cause i was doing one mistake at last line Please its an requestâș
6 Answers
+ 2
Put the \n inside and you must not use + operator in the print statement because you are printing string with an int or float result. So you can replace it with a comma separator.
a = int(input("VERIABLE 1\n"))
b = int(input("VERIABLE 2\n"))
print("VERIABLE 1 = ",a )
print("VERIABLE 2 = ",b )
print ( "VERIABLE 1 / VERIABLE 2 = ",a/b )
print ( "VERIABLE 1 * VERIABLE 2 = ",a*b )
print ( "VERIABLE 1 + VERIABLE 2 = ",a+b )
print ( "VERIABLE 1 - VERIABLE 2 = ",a-b )
+ 4
Share your attempt and the community will help you rectify the errors.
+ 2
Ok Sir
+ 2
https://code.sololearn.com/cJqKClN0bSxm/?ref=app
Here you goâș
+ 2
Ohh
I got you
Really thank you AVINESH SIRâș
+ 2
ABHIRAJ SRIVASTAVA you're welcome and call me just Avinesh.