coding program
import java.util.Scanner;
public class scanner {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int a,b,c,d,e;
System.out.print("Masukkan jumlah uang : ");
a=input.nextInt();
b=a/10000;
c=(a-(b*10000))/5000;
d=((a-(b*10000))-(c*5000))/100;
e=(((a-(b*10000))-(c*5000))-(d*100))/50;
System.out.println("sepuluh ribuan : " + b);
System.out.println("lima ribuan : " + c);
System.out.println("seratusan : " + d);
System.out.println("lima puluhan : " + e);
}
}