Int main ...
int a,b,c;
cout <<" 2+2=4? 1-да, 2 - нет " << endl;
cin>>a;
if (a == 1) { <span>cout <<" Верно " << endl;}
if (a==2) </span>{ <span>cout <<" Ошибка " << endl;}
</span>cout <<" 3+2=5? 1-да, 2 - нет " << endl;
<span>cin>>a;
</span>if (a == 1) { <span>cout <<" Верно " << endl;}
if (a==2) </span>{ <span>cout <<" Ошибка " << endl;}
</span>system ("pause");
return 0;
#include <cstdio>
//НОД двух чисед
int gcd(int a, int b) {
if (b == 0)
return a;
return gcd(b, a % b);
}
//НОД трех чисел
int gcd(int a, int b, int c) {
return gcd(gcd(a, b), c);
}
//НОК
int lcm(int a, int b) {
return a * b / gcd(a, b);
}
int main() {
int m, n;
scanf("%d %d", &m, &n);
printf("%d\n", gcd(m, n));
printf("%d", lcm(m, n));
return 0;
}<span>
</span>
Var
S:real;
A:integer;
Begin
S:=0;
For A:= 11 to 99 do
if A mod 2 <> 0 then S:=S+sqrt(A);
WriteLn('S = ',S)
End.