+ 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
24 Answers
+ 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
Ok Thanks
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)
0
Hi there
0
Yes it is the most easiest computer programming language in the world. Shaxzoda Sherzodovna
0
ye
0
Because you only calculate value not print these value.