Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!
иван-занимается легкой атлетикой,петр-баскетболом, алексей-хоккеем, андрей-футболом
вот на 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; }
var a: array[1..100] of integer;
i,s,n,m: integer;
begin
randomize;
read(n,m);
for i : = 1 to 100 do
a[i]: =random(m-n) +n;
if (i mod 2 =0) and (a[i] mod 2 = 0) then s: =s+1;
end;
writeln(s);
end.
var s: string; begin writeln('как вас зовут? '); readln(s); case s of 'вася': s: ='василий'; 'петя': s: ='петр'; 'люся': s: ='людмила'; 'миха': s: ='михаил'; 'пупс': s: ='пупондий'; else s: ='я с вами не знакома'; end; writeln(s); readkey; end.
Популярные вопросы