program Project2; {$APPTYPE CONSOLE} uses SysUtils; var i,x,y,z, dwa,tri,shetire,pati:Integer; begin Writeln('student Fediya='); Readln(i); Writeln('student Sungat='); readln(x); Writeln('student Alex='); readln(y); Writeln('student Halif='); Readln(z); case i of 2: Inc(dwa); 3: Inc(tri); 4: Inc(shetire); 5: Inc(pati); end; begin case x of 2: Inc(dwa); 3: Inc(tri); 4: Inc(shetire); 5: Inc(pati); end; end; begin case y of 2: Inc(dwa); 3: Inc(tri); 4: Inc(shetire); 5: Inc(pati); end; end; begin case z of 2: Inc(dwa); 3: Inc(tri); 4: Inc(shetire); 5: Inc(pati); end; end; WriteLn(#13#10'dwa: ', dwa, #13#10'tri: ', tri, #13#10'shetire: ', shetire, #13#10'pati: ', pati); ReadLn; { TODO -oUser -cConsole Main : Insert code here }end.
uses crt,graph; type mas=array[1..500] of Pointtype; var gd,gm,i,j,k,n:integer; a:mas; begin randomize; gd:=0; initgraph(gd,gm,''); for i:=1 to 500 do begin a[i].x:=random(getmaxX); a[i].y:=random(getmaxY); circle(a[i].x,a[i].y,2); end; k:=0;n:=0; repeat k:=k+1; delay(200); setcolor(0); for i:=1 to 500 do circle(a[i].x,a[i].y,2); for i:=1 to 500 do begin if a[i].y>getmaxY-n-10 then a[i].y:=1 else a[i].y:=a[i].y+3; if a[i].x<0 then a[i].x:=getmaxX else a[i].x:=a[i].x-1; end; setcolor(15); for i:=1 to 500 do circle(a[i].x,a[i].y,2); if k mod 20=0 then begin n:=n+1; line(0,getmaxY-n,getmaxX,getmaxY-n); end; until keypressed; readln end.
0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota
Оформи подписку