Advertisement
CyberPascal

Untitled

Nov 18th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.46 KB | None | 0 0
  1. Program Lab5_6; uses crt;
  2.  
  3. var a,b:integer;
  4.     x:real;
  5.  
  6. Begin clrscr;
  7. Write(' Введите число A: '); Readln(A);
  8. Write(' Введите число B: '); Readln(B);
  9.  
  10. if (A > B) then X:=A*B+1
  11.            else if (A = B) then X:=25
  12.                    else if ((A < 0) and (B <> 0)) then X:=(A-5)/B
  13.                                               else Writeln(' ОШИБКА: Делить на ноль нельзя!');
  14.  
  15. Writeln(' Ответ: ',X:8:5);
  16. Readln;
  17. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement