Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
пусть [a,b] - область и a< =b
var
a,b,x: real;
begin
readln(a,b,x);
if (a< =x) and (x< =b) then
writeln('принадлежит')
else
writeln('не принадлежит');
end.
вот на c:
#include < stdio.h> int main(void){ int i; for(i = 50; i > = -50; i -= 10) { printf("%d\n", i); } printf("\n"); system("pause"); return 0; }
program month;
uses crt;
var a: integer;
clrscr;
write('vsatvte chislo');
read(a);
if (a=12) or (a=1) or (a=2) then write('zima')
else if (a=3) or (a=4) or (a=5) then write ('vesna')
else if (a=6) or (a=7) or (a=8) then write ('leto')
else write('oseni');
repeat until keypressed;
чесно говоря без них куда легче
var s: string;
i: integer;
read(s);
for i: = 1 to length(s) do
if i mod 2 = 0 then s[i]: ='*';
writeln(s);
с ними только больше кода
if i mod 2 = 0 then begin
delete(s,i,1);
insert('*',s,i);
end;
Популярные вопросы