+1

Having proplem with calculation codes

when i enter something like plus or minus calculations there will be no output i write it like that 2 + 2 then press run

4/3/2020 6:31:00 AM

Dina Mo'men

28 Answers

New Answer

+9

Dina Mo'men Because you are only calculating the values, not printing them If you want output you should print them using 'print'

+5

Shaxzoda Sherzodovna read this. follow community guidelines https://www.sololearn.com/Discuss/1316935/?ref=app

+3

Shaxzoda Sherzodovna Yes it's very easy

+2

Shaxzoda Sherzodovna if you Don't know Python the please don't spam/chat here

+2

Hello, you don't print this code you can do about that: "a = 2 + 2 print(a)" Or "print(2 + 2)"

+1

Yes The problem is that you are only Calculating the value Not printing You have to type Print(2+2) For output

+1

Or you have to give any variable a =2+2 Print a

+1

A=2+2 print(A)

+1

S=input("Enter :") print("Ans=",eval(S)) OUTPUT: Enter : 2+2 Ans=4

+1

int x = 2; int y = 2; console.writeline(x+y); //outputs 4 Use this code

+1

If you want to print 2 + 2 use : print(2+2) Or a = 2 + 2; print(a)

+1

That works only in the console, if you want to use it in the editor then print() function is required

0

Oh there is some problems with your code i think

0

I made a calculator in java script it was so easy

0

Do you making a calculator

0

0

What you has in view of

0

Ok i understand

0

I did not understand std in c++ please help me

0

You need to print a= 2 + 2; print(a)