Advertisement
Bwagojche

NizaPrimer

Jun 3rd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. public class NizaPrimer {
  3.  
  4. public static void main(String[] args) {
  5.  
  6. int [] broevi = new int[5];
  7. broevi[0] = 5;
  8. broevi[1] = 6;
  9. broevi[2] = 7;
  10. broevi[3] = 10;
  11. broevi[4] = 100;
  12.  
  13. for (int m = 0; m<broevi.length; m++) {
  14. int suma = 0;
  15. suma = m + m;
  16.  
  17. System.out.println("vrednost na " + m + " element e " + broevi[m] + suma);
  18.  
  19.  
  20. }
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement