program DemoCalc; var X, Y, Rezult : real; Ope, Ans : char; begin repeat write('X = '); Readln(X); write('Y = '); Readln(Y); Writeln('операция (+,-,/,*) >'); Readln(Ope); case Ope of '+' : Rezult := X+Y; '-' : Rezult := X-Y; '*' : Rezult := X*Y; '/' : Rezult := X/Y; else writeln('Error nah...'); end; Writeln(X, Ope, Y, '=' , Rezult); Writeln('Продолжить Y\N'); Readln(Ans); Until (Ans='N') or (Ans='n'); end.