Untitled
unknown
c_cpp
20 days ago
454 B
0
Indexable
Never
#include <iostream> using namespace std; int vozrast(int age) { if (age >= 10 && age < 20){ cout << "Молодой ещё"; } if (age >= 20 && age < 30) { cout << "Бывалый уже"; } if (age >= 30 && age < 40) { cout << "Старпер"; } if (age >= 40) { cout << "Таких уже не бывает"; } return age; } int main() { setlocale(LC_ALL, "Russian"); int age; cin >> age; vozrast(age); }