#include <iostream>
using namespace std;
int main() {
// Variables
int age;
// Input age
cout << "How old are you?" << endl;
cin >> age;
// Solution
if (age >= 6 && age <= 17) {
cout << "You are schoolman" << endl;
}
else {
cout << "You are not schoolman" << endl;
return 0;
#include <iostream>
using namespace std;
int main() {
// Variables
int age;
// Input age
cout << "How old are you?" << endl;
cin >> age;
// Solution
if (age >= 6 && age <= 17) {
cout << "You are schoolman" << endl;
}
else {
cout << "You are not schoolman" << endl;
}
return 0;
}