Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package zadatakZaPantica;
- public class Zadatak1 {
- public static void main(String[] args) {
- int[] niz = {1000,500,200,100,50};
- int korisnickiIznos=5000;
- int isplacenIznos=0;
- while(korisnickiIznos!=isplacenIznos){
- if(korisnickiIznos%50==0){
- isplacenIznos+=niz[1];
- System.out.println("Isplacuje novcanicu od" +niz[1] + " dinara");
- }
- else System.out.println("Uneli ste pogresan iznos!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement