C++ · ОСНОВЫ · LESSON 16
Your command.
Function · 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;
void hello() {
cout << "Привет!" << endl;
}
int main() {
hello();
return 0;
}Open the editor for class workSolve it yourself
Create a void cheer() function that outputs «Ура!» and call it from main.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework