Var a,b,c:real;a1,b1,c1:integer;d:boolean;beginread(a,b,c);d:=(a>=b)and(b>=c);if d then begina:=a*2; b:=b*2; c:=c*2;Writeln(a,b,c); endelse begina1:=trunc(a);b1:=trunc(b);c1:=trunc(c); Writeln(a1,b1,c1);end;end.
Larya
21.01.2021
var s : string[50]; i, j, k : word; f : boolean; function isSpace(ch : char) : boolean; begin isSpace := false; if ch = ' ' then isSpace := true; end; begin f := false; repeat j := 0; writeln('введите строку, состоящую из 2 слов'); readln(s); for i := 1 to length(s) do if isSpace(s[i]) then begin inc(j); k := i; end; if j =1 then f := true; until f; write(copy(s, k + 1, length(s)), ' ', copy(s, 1, k - 1)); end. недавно такую писала :)
endelse begina1:=trunc(a);b1:=trunc(b);c1:=trunc(c); Writeln(a1,b1,c1);end;end.