Fill in the blanks to declare variable sum equal to a + b in c++:
int____= A_____B
Answers
Answer:
int sum = A+B
Explanation:
int keyword is used to declare inter type variables.
+ operator is used to add to variables or numbrrs
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