- 3

Code for sum of two variable

Jj

5th Aug 2021, 2:58 AM
AMAN GOYAL
9 ответов
+ 1
Print(2+2) Console.log(2+2) printf(2+2) c=2+2 cout<<"Sum="<< c; println(2+2) puts 2+2 echo 2+2
5th Aug 2021, 3:00 AM
Pariket Thakur
Pariket Thakur - avatar
+ 1
It's int a = 15; int b = 20; int sum = a+b; cout << sum;
5th Aug 2021, 3:03 AM
Eashan Morajkar
Eashan Morajkar - avatar
0
Depends on the language but mathematically it's the same in all languages First_operand + Second_operand
5th Aug 2021, 3:01 AM
Eashan Morajkar
Eashan Morajkar - avatar
0
I do like that Int a=15; Int b=20; Int sum a+b; Cout <<"sum"; What's wrong in it
5th Aug 2021, 3:02 AM
AMAN GOYAL
0
Remove the quotes of "sum" it's sum
5th Aug 2021, 3:02 AM
Eashan Morajkar
Eashan Morajkar - avatar
0
Remove the quote When u write Count<<"sum" Output: Sum Count<<sum output: 35
5th Aug 2021, 3:06 AM
Pariket Thakur
Pariket Thakur - avatar
0
Not working
5th Aug 2021, 3:10 AM
AMAN GOYAL
0
Now show unexpected variable
5th Aug 2021, 3:10 AM
AMAN GOYAL
0
Int a=15; Int b=20; Int sum a+b; Cout<<sum;
5th Aug 2021, 3:11 AM
AMAN GOYAL