Untitled
unknown
c_cpp
2 years ago
454 B
9
Indexable
#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);
}Editor is loading...