Taky neco pridam, ale je to asi hodne lehke....
public static void uuu(int a) {
if ((a/5000)>= 1){
System.out.println((a/5000));
}
if ((a/2000)>= 1){
System.out.println((a/2000));
a = a % 2000;
}
if ((a/1000)>= 1){
System.out.println((a/1000));
a = a % 1000;
}
if ((a/500)>= 1){
System.out.println((a/500));
a = a % 500;
}
if ((a/200)>= 1){
System.out.println((a/200));
a = a % 200;
}
if ((a/100)>= 1){
System.out.println((a/100));
a = a % 100;
}
if ((a/50)>= 1){
System.out.println("(a/50));
a = a % 50;
}
if ((a/20)>= 1){
System.out.println((a/20));
a = a % 20;
}
if ((a/10)>= 1){
System.out.println(+(a/10));
a = a % 10;
}
if ((a/5)>= 1){
System.out.println((a/5));
a = a % 5;
}
if ((a/2)>= 1){
System.out.println((a/2));
a = a % 2;
}
System.out.println((a));
}