Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program Kurac
- ne znam ovaj deo sa begin end i to kako ide
- ako imas niz brojeva koji se zove niz
- int i:=0;
- real suma := 0;
- real srednjaVr := 0;
- while(i<10) do begin
- if(niz[i]<0) then
- suma := suma + niz[i];
- end_if
- i := i+1;
- end_while
- srednjaVr := suma/10;
- ne znam jel treba ovo end_if ili samo end
- to je i nebitno
- ovo ti je u sustini to pozz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement