Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

i need help with this pls help

+4 votes
asked Apr 5, 2021 by Kyzer Maynard (210 points)
edited Apr 16, 2021 by Kyzer Maynard
https://onlinegdb.com/rygzLT4vId I am trying to make a calc pls help

4 Answers

0 votes
answered Apr 5, 2021 by Sumit Kumbhkarn (140 points)
Can you plzz show your program? You given a wrong link.
0 votes
answered Apr 7, 2021 by Peter Minarik (55,660 points)
Your link doesn't work. It point to the generic OnlineGDB editor. You need to save your project then use the share button.
0 votes
answered May 11, 2021 by Shivam Tiwari (180 points)
0 votes
answered Jun 13, 2021 by ITSME (740 points)
#Now this code works

d = input (" hi whats your name ")

print ("hi, " + str (d) + " to my calculator")

a = int(input ("1 for division\n2 for multiplication\n3 for addition\n4 for subtraction \n"))#we are taking number as input so use int(input()

c =int(input ("number 1 is"))#here aslo

e = int(input ("number 2 is"))

if a== 1:

   z = c / e  # And use this syntax for calculations otherwise it doesnt work

elif a == 2: #also use elif if you want to use if statement again and again

    z = c * e

elif a== 3:

    z = c + e

else:

z = c - e

print ("the answer is " ,z) # use correct syntax
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...