Объяснение:
<---------------------------1--------------------------->
#include <iostream>
using namespace std;
int main() {
int a;
cin>>a;
if ((a/100+(a%100)/10+a%10) % 2 == 0)
cout << "YES";
else
cout << "NO";
return 0;
}
<---------------------------2--------------------------->
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a == b || a == c || c == b)
cout << "YES";
else
cout << "NO";
return 0;
}
<---------------------------3--------------------------->
#include <iostream>
using namespace std;
int main()
{
int a, b;
char sing;
cin >> a >> sing >> b;
switch (sing)
{
case '*':
cout << a * b;
break;
case '/':
cout << a / b;
break;
case '+':
cout << a + b;
break;
case '-':
cout << a - b;
break;
default:
cout << "ERROR";
break;
}
return 0;
}
i,j, x: integer;
a1,a2,stop: boolean;
Begin
x:=200;
stop:=true;
while stop do
begin
x:=x+1;
a1:=false;
a2:=true;
if x mod 2 = 0 then a2:=false;
if x mod 17 = 0 then a1:=true;
if a1 and a2 then stop:=false;
end;
writeln('x/17 = ',x);
end.
//программа печатает число 221