Guest User

Untitled

a guest
Oct 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. program pl;
  2. uses crt;
  3. var f: real;
  4. a, b, h:integer;
  5. crl: scr;
  6. begin
  7. write ('a=');
  8. read (a);
  9. write ('b=');
  10. read (b);
  11. write ('h=');
  12. read (h);
  13. x:=B;
  14. while (x<=a) do
  15. begin
  16. if x<11 then f:=5*x-4
  17. else
  18. f:=2+x;
  19. writeln ('f=',f);
  20. x:=x+h;
  21. end;
  22. end.
Add Comment
Please, Sign In to add comment