Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. program suma_liczb;
  2. uses crt;
  3. var il:integer;
  4. liczba, suma:real;
  5. begin
  6. clrscr;
  7. suma:=0;
  8. il:=0;
  9. repeat
  10. il:=il+1;
  11. write('Podaj liczbe nr ', il:4, ': ');
  12. Read(liczba);
  13. suma:=suma+liczba;
  14. until il=6;
  15. il:=il-1;
  16. writeln('Suma liczb wynosi :', suma:5:2);
  17. writeln('Ilosc liczb: ', il:4);
  18. repeat until keypressed
  19. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement