Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program MyFirstCalc;
- Var oper:char;
- num1,num2:integer;
- begin
- readln(num1);
- readln(oper);
- readln(num2);
- case oper of
- '-':writeln('Ответ = ', num1 - num2);
- '+':writeln('Ответ = ', num1 + num2);
- '*':writeln('Ответ = ', num1 * num2);
- '/':writeln('Ответ = ', num1 / num2);
- else
- writeln('Неверный формат');
- end;
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement