0
Simple calculator
I don't know how to make it. Help me please.
8 Respostas
+ 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)
+ 2
Please show your attempt.
+ 2
Thank you.. I completed the task👍
+ 1
There will be needed to code:
two inputs and convert them to numbers
add them and print
+ 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😅
+ 1
#Just three lines
x = int(input())
y = int(input())
print (x+y)
#I did that and collected 50XP
0
Just do it simply by switch. And add operators like '+,-,*,/' etc..
- 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.