+ 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
Dina Mo'men - avatar
24 Respuestas
+ 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
Иван Могилевец
Иван Могилевец - avatar
+ 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
sandip dey - avatar
+ 1
Or you have to give any variable a =2+2 Print a
3rd Apr 2020, 4:56 PM
lovely thinker
lovely thinker - avatar
+ 1
A=2+2 print(A)
3rd Apr 2020, 6:50 PM
Sarah Zavahir
Sarah Zavahir - avatar
+ 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
Suraj Kumar - avatar
+ 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
AmirHosein Vahed - avatar
+ 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
Lenminthang Pulamte - avatar
0
Oh there is some problems with your code i think
3rd Apr 2020, 6:31 AM
Shaxzoda Sherzodovna
Shaxzoda Sherzodovna - avatar
0
I made a calculator in java script it was so easy
3rd Apr 2020, 6:32 AM
Shaxzoda Sherzodovna
Shaxzoda Sherzodovna - avatar
0
Do you making a calculator
3rd Apr 2020, 6:33 AM
Shaxzoda Sherzodovna
Shaxzoda Sherzodovna - avatar
0
Ok Thanks
3rd Apr 2020, 6:36 AM
Shaxzoda Sherzodovna
Shaxzoda Sherzodovna - avatar
0
What you has in view of
3rd Apr 2020, 6:39 AM
Shaxzoda Sherzodovna
Shaxzoda Sherzodovna - avatar
0
Ok i understand
3rd Apr 2020, 6:40 AM
Shaxzoda Sherzodovna
Shaxzoda Sherzodovna - avatar
0
I did not understand std in c++ please help me
3rd Apr 2020, 10:38 AM
khanous mohammed
khanous mohammed - avatar
0
You need to print a= 2 + 2; print(a)
4th Apr 2020, 12:21 PM
Rubens Jean Simon
Rubens Jean Simon - avatar
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
Charki Zarouali - avatar
0
Because you only calculate value not print these value.
5th Apr 2020, 12:14 AM
Ankit Singh
Ankit Singh - avatar