C++ · ОСНОВЫ · LESSON 12
Numbers near
Massive · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Manually type the program from the sample. So you'll remember commands and brackets.
#include <iostream>
using namespace std;
int main() {
int nums[3] = {2, 4, 6};
cout << nums[1] << endl;
return 0;
}Open the editor for class workSolve it yourself
Create an array of int nums[3] from the numbers 3, 6, 9 and output the third number by index.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework