0

Simple calculator

I don't know how to make it. Help me please.

6th Feb 2021, 10:57 PM
Biaan_caa
Biaan_caa - avatar
8 Answers
+ 4
Okay, congrats Bianca StaĆĄovĂĄ . Now only for clearing understanding for you how it works in a easy form: ina = int(input()) inb = int(input()) res = ina + inb print(res)
7th Feb 2021, 12:36 PM
JaScript
JaScript - avatar
+ 2
Please show your attempt.
7th Feb 2021, 7:28 AM
JaScript
JaScript - avatar
+ 2
Thank you.. I completed the task👍
7th Feb 2021, 9:50 AM
Biaan_caa
Biaan_caa - avatar
+ 1
There will be needed to code: two inputs and convert them to numbers add them and print
6th Feb 2021, 11:32 PM
JaScript
JaScript - avatar
+ 1
elif user_input == "multiply": num1 = float(input(3)) num2 = float(input(6)) result = str(num1 + num2) print("The answer is" + result) I tried at least ten time to make it😅
7th Feb 2021, 8:54 AM
Biaan_caa
Biaan_caa - avatar
+ 1
#Just three lines x = int(input()) y = int(input()) print (x+y) #I did that and collected 50XP
19th Feb 2021, 5:36 AM
Billy Korahan
Billy Korahan - avatar
0
Just do it simply by switch. And add operators like '+,-,*,/' etc..
7th Feb 2021, 6:18 AM
Atul [Inactive]
- 1
Look you can make a calculator with command line interface but not with graphical user interface, if you are a beginner. Continue learn coding until you start developing web apps or android/iOS apps. This is not so quick dear. Just don't give up and learn. Later you will guide your path yourself. Just keep learning a programming language.
9th Feb 2021, 12:02 PM
Mousin Ahanger
Mousin Ahanger - avatar