Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package zadatakZaPantica;
  2.  
  3. public class Zadatak1 {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. int[] niz = {1000,500,200,100,50};
  8.  
  9. int korisnickiIznos=5000;
  10. int isplacenIznos=0;
  11.  
  12. while(korisnickiIznos!=isplacenIznos){
  13.  
  14. if(korisnickiIznos%50==0){
  15. isplacenIznos+=niz[1];
  16. System.out.println("Isplacuje novcanicu od" +niz[1] + " dinara");
  17. }
  18.  
  19. else System.out.println("Uneli ste pogresan iznos!");
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement