C++ · ОСНОВЫ · LESSON 07
Two checks.
&& и || · 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 age = 9;
bool allowed = age >= 7 && age <= 12;
cout << allowed << endl;
return 0;
}Open the editor for class workSolve it yourself
Create int points = 8. Save in bool passed check that points is from 5 to 10 inclusive, and output passed.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework