Program Project1; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; var a, b, c, x, y:integer; begin write('Enter a: '); readLn(a); write('Enter b: '); readLn(b); write('Enter c: '); readLn(c); write('Enter x: '); readLn(x); write('Enter y: '); readLn(y);
writeLn('a^2+(c+b)^2>=10: ', a*a + (c+b)*(c+b) >=10); writeLn('odd(c*(c+1)): ', (c*(c+1)) mod 2 = 1); writeLn('x xor (not y): ', x xor not y); writeLn('(x and y) or not(x): ', (x and y) or not x); readln; end.
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota
Оформи подписку