+ 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☺

15th Oct 2020, 7:47 AM
OTAKU NO.1
OTAKU NO.1 - avatar
6 ответов
+ 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 )
15th Oct 2020, 8:01 AM
Avinesh
Avinesh - avatar
+ 4
Share your attempt and the community will help you rectify the errors.
15th Oct 2020, 7:50 AM
Avinesh
Avinesh - avatar
+ 2
Ok Sir
15th Oct 2020, 7:50 AM
OTAKU NO.1
OTAKU NO.1 - avatar
15th Oct 2020, 7:56 AM
OTAKU NO.1
OTAKU NO.1 - avatar
+ 2
Ohh I got you Really thank you AVINESH SIR☺
15th Oct 2020, 8:03 AM
OTAKU NO.1
OTAKU NO.1 - avatar
+ 2
ABHIRAJ SRIVASTAVA you're welcome and call me just Avinesh.
15th Oct 2020, 8:04 AM
Avinesh
Avinesh - avatar