Computer Science, asked by adityajha110807, 3 months ago

Fill in the blanks to declare variable sum equal to a + b in c++:
int____= A_____B

Answers

Answered by anu34042
2

Answer:

int sum = A+B

Explanation:

int keyword is used to declare inter type variables.

+ operator is used to add to variables or numbrrs


adityajha110807: thanka anu34042
Answered by surajnegi0600
0

Answer:

Variable sum equal to a + b in c++:

int sum = a + b;

Explanation:

This C++ code declares a variable called "sum" of data type "int" and assigns the value obtained by adding two other variables "a" and "b" to it. The "int" keyword tells the compiler that the variable should be treated as an integer. "sum" is the name of the variable. The assignment operator "=" assigns the value obtained by adding "a" and "b" to "sum". This value can be used later in the program by calling the variable "sum". This code creates a variable and assigns value to it, and it's a basic building block of any program.

More questions and answers

https://brainly.in/question/54834416

https://brainly.in/question/9721687

#SPJ3

Similar questions