Complete the code to include the standard input-output library.
#include [1]
The <iostream> header is required for input and output operations in C++.
Complete the code to start the main function.
int [1]() { return 0; }
The main function is the entry point of every C++ program.
Fix the error in the code to print "Hello, World!".
#include <iostream> int main() { std::cout [1] "Hello, World!" << std::endl; return 0; }
The insertion operator << is used with std::cout to print output.
Fill both blanks to declare and initialize an integer variable named count with value 10.
[1] [2] = 10;
int declares an integer type, and count is the variable name.
Fill all three blanks to create a simple for loop that prints numbers 1 to 5.
for (int [1] = 1; [2] <= 5; [3]++) { std::cout << i << std::endl; }
The variable i is used as the loop counter in all parts of the for loop.
