Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # #
- # funkcija 5.10 #
- # #
- function sumaprirodnih(a)
- println("");
- suma=0;
- for i in 1:a #ovim forom setamo od a do b za neparne
- suma=suma+i;
- end
- # return suma; #moze ovako
- println("RESENJE: Suma prvih $a elemenata je $suma !"); #ovo je malo lepsi ispis
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement