- 3
Code for sum of two variable
Jj
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
+ 1
It's
int a = 15;
int b = 20;
int sum = a+b;
cout << sum;
0
Depends on the language but mathematically it's the same in all languages
First_operand + Second_operand
0
I do like that
Int a=15;
Int b=20;
Int sum a+b;
Cout <<"sum";
What's wrong in it
0
Remove the quotes of "sum" it's sum
0
Remove the quote
When u write
Count<<"sum"
Output:
Sum
Count<<sum
output:
35
0
Not working
0
Now show unexpected variable
0
Int a=15;
Int b=20;
Int sum a+b;
Cout<<sum;