C++ · ОСНОВЫ · LESSON 06
Truth or falsehood
bool and comparison · 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() {
bool enough = 8 > 5;
cout << enough << endl;
return 0;
}Open the editor for class workSolve it yourself
Save in bool equal check 4 = = 6. Output equal: get 0.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework