Advertisement
Gromov

Untitled

Nov 8th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. program OCENKI;
  2. uses CRT;
  3. var
  4. n,m, summa:integer;
  5. aud:array [1..10] of string;
  6. atz:array[1..10,1..10] of integer;
  7. begin
  8. randomize;
  9. for m:=1 to 5 do
  10. begin
  11. write('Audzeknis #',m:2,' ':7);
  12. for n:=1 to 3 do
  13. begin
  14. atz[m,n]:=random(10)+1;
  15. write (atz[m,n]:5);
  16. atz[m,4]:=atz[m,4]+atz[m,n];
  17. end;
  18. writeln (atz[m,4] / n:7:2);
  19. summa:=summa+atz[m,4];
  20. end;
  21. writeln;
  22. writeln ('Kopa visiem audzekniem= ', summa/15:3:2);
  23. readln;
  24. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement