Program n1;
var a: array[1..10] of integer;
i: integer;
begin
for i:=1 to 10 do readln(a[i]);
for i:=1 to 10 do if a[i] mod 2=0 then write(a[i],' ');
end.
var x,y:real;
begin
writeln('Введите значение x: ');
readln(x);
if x<0 then
begin
y:=x/2;
writeln('y = ',y);
end
else
begin
if x>=0 then
y:=sqrt(3+x);
writeln('y = ',y);
end;
end.
#include <string>
#include <iostream>
using namespace std;
int main(){
string s;
cin>>s;
if(s[0]!='1'){
cout<<"No";
cin.get();
cin.get();
return 0;
}
for(int i=1;i<s.length();i++){
if((s[i]!='1') && (s[i]!='0')){
cout<<"No";
cin.get();
cin.get();
return 0;
}
}
cout<<"Yes";
cin.get();
cin.get();
return 0;
}<span>
</span>