1)#include <iostream>using namespace std;int main() { cout << "Сколько Вам лет?" << endl; int age; string s; cin >> age >> s;}2)#include <iostream>using namespace std;int main() { cout << "Сколько Вам лет?" << endl; int age; cin >> age; if(age < 0) cout << "wrong" << endl; else if(age >= 18) cout << "yes" << endl; else cout << "no" << endl;}3)#include <iostream>using namespace std;int main() { int a; cin >> a if(a%2 == 0) cout << "четное" << endl; else cout << "нечетное" << endl;}4)#include <iostream>using namespace std;int main() { int a,b,c; string s = ""; cin >> a >> b >> c; if(a == b && a == c) cout << "равносторонний" << endl; else { if (a==b || a == c || b == c) s += "равнобедренный"; if( a*a == (b*b+c*c) || b*b == (a*a+c*c) || c*c == (a*a+b*b)) s+= "прямоугольный"; if(s == '') cout << "обычный" << endl; else cout << s << endl; }}