Var s: string; p, nb: integer; begin write('text? '); readln(s); p : = 1; while p < = length(s) do begin while (s[p] = ' ') and (p < = length(s)) do inc(p); if (p < = length(s)) and (s[p] = 'b') then inc(nb); while (s[p] < > ' ') and (p < = length(s)) do inc(p); end; write('num words: ', nb); end.
Спасибо
Ответ дал: Гость
program risovalka;
uses crt,graphabc;
var xc,yc,r1,r2,rc,ro,n,i,x,y: integer;
a: real;
begin repeatwrite('ykashi shislo otverstii ot 5 do 10 n=');
read(n);
until n in [5..10];
clrscr; hidecursor;
xc: =windowwidth div 2;
yc: =windowheight div 2;
r1: =40;
r2: =120;
rc: =100; ro: =30;
a: =2*pi/n;
circle(xc,yc,r2);
circle(xc,yc,r1);
for i: =1 to n do begin x: =xc+round(rc*cos(a*i));
Популярные вопросы