Complete the code to declare an integer variable named age.
int [1];The variable name age is used to store an integer value.
Complete the code to assign the value 10 to the variable score.
score [1] 10;
The single equals sign = is used to assign a value to a variable.
Fix the error in the code to correctly declare and initialize a variable.
int [1] = 5.5;
The variable name should be a valid identifier like num. The value 5.5 is a double, but here we focus on the variable name.
Fill both blanks to declare a variable and assign it a value.
[1] [2] = 20;
We declare an integer variable named count and assign it the value 20.
Fill all three blanks to declare a float variable, assign a value, and print it.
#include <iostream> using namespace std; int main() { [1] [2] = 3.14f; cout << [3] << endl; return 0; }
We declare a float variable pi, assign 3.14, and print pi.
