+ 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

3rd Apr 2020, 6:31 AM
Dina Mo'men
+ 2
Hello, you don't print this code you can do about that: "a = 2 + 2 print(a)" Or "print(2 + 2)"
3rd Apr 2020, 9:10 AM
Иван Могилевец
+ 1
Yes The problem is that you are only Calculating the value Not printing You have to type Print(2+2) For output
3rd Apr 2020, 11:56 AM
sandip dey
+ 1
Or you have to give any variable a =2+2 Print a
3rd Apr 2020, 4:56 PM
lovely thinker
+ 1
A=2+2 print(A)
3rd Apr 2020, 6:50 PM
Sarah Zavahir
+ 1
S=input("Enter :") print("Ans=",eval(S)) OUTPUT: Enter : 2+2 Ans=4
4th Apr 2020, 6:43 AM
ANJALI SAHU
+ 1
int x = 2; int y = 2; console.writeline(x+y); //outputs 4 Use this code
4th Apr 2020, 7:10 AM
Suraj Kumar
+ 1
If you want to print 2 + 2 use : print(2+2) Or a = 2 + 2; print(a)
4th Apr 2020, 7:55 AM
AmirHosein Vahed
+ 1
That works only in the console, if you want to use it in the editor then print() function is required
4th Apr 2020, 1:01 PM
Lenminthang Pulamte
0
Oh there is some problems with your code i think
3rd Apr 2020, 6:31 AM
Shaxzoda Sherzodovna
0
I made a calculator in java script it was so easy
3rd Apr 2020, 6:32 AM
Shaxzoda Sherzodovna
0
Do you making a calculator
3rd Apr 2020, 6:33 AM
Shaxzoda Sherzodovna
0
Ok Thanks
3rd Apr 2020, 6:36 AM
Shaxzoda Sherzodovna
0
What you has in view of
3rd Apr 2020, 6:39 AM
Shaxzoda Sherzodovna
0
Ok i understand
3rd Apr 2020, 6:40 AM
Shaxzoda Sherzodovna
0
I did not understand std in c++ please help me
3rd Apr 2020, 10:38 AM
khanous mohammed
0
You need to print a= 2 + 2; print(a)
4th Apr 2020, 12:21 PM
Rubens Jean Simon
0
Hi there
4th Apr 2020, 4:00 PM
abdolfattah
0
Yes it is the most easiest computer programming language in the world. Shaxzoda Sherzodovna
4th Apr 2020, 8:09 PM
Anand
0
ye
4th Apr 2020, 9:20 PM
Charki Zarouali
0
Because you only calculate value not print these value.
5th Apr 2020, 12:14 AM
Ankit Singh