Var
n:integer;
begin
readln(n);
n:=n mod 7;
if n=1 then
writeln('Понедельник');
if n=2 then
writeln('Вторник');
if n=3 then
writeln('Среда');
if n=4 then
writeln('Четверг');
if n=5 then
writeln('Пятница');
if n=6 then
writeln('Суббота');
if n=7 then
writeln('Восресенье');
end.
Задание #1
var a:integer;
begin
a:=10;
while a<=150 do
begin
write (a,' ');
a:=a+10
end;
writeln;
a:=200;
repeat
write (a,' ');
a:=a-10
until a<100
end.
Задание #2
var a,b:integer;
begin
readln(a,b);
if a>b then write (a) else write (b)
end.
Задания #3
var a,b,c:integer;
begin
readln(a,b,c);
if (a>b) and (a>c) then write (a,' ',b+c);
if (b>a) and (b>c) then write (b,' ',a+c);
if (c>a) and (c>b) then write (c,' ',a+b)
end.
~x ^ ~Y ^ z
рассмотрим Таб ист
~x ^ ~Y ^ z = ~(1) ^ ~(0) ^ 0 = 0 ^ 1 ^ 0 = 0
~x ^ ~Y ^ z = ~(0) ^ ~(0) ^ 1 = 1 ^ 1 ^ 1 = 1
~x ^ ~Y ^ z = ~(0) ^ ~(0) ^ 0 = 1 ^ 1 ^ 0 = 0
Соответствует, Ответ 2)