Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. program zadanie3;
  2. var
  3. a,x:real;
  4. begin
  5. writeln('Podaj wartosc x: ');
  6. readln(x);
  7. repeat
  8. begin
  9. if (x=-7.5) or (x=3.25) then
  10. begin
  11. writeln('Blad. Mianownik rowny zero.');
  12. writeln('Podaj wartosc x: ');
  13. readln(x);
  14.  
  15. end;
  16. end;
  17. until ((x<>-7.5) and (x<>3.25));
  18. a:=(x*x-2*x)/(4*x*x+17*x-97.5);
  19. writeln('Wynik: ', a:3:3);
  20. writeln('Nacisnij enter aby zakonczyc...');
  21. readln();
  22. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement