public static void Main()
int money,a,b,c,d,e,f,g,h;
Console.WriteLine("Enter money you wish to convert : ");
money = int.Parse(Console.ReadLine());
Console.WriteLine("B1000 = {0}", a);
Console.WriteLine("B500 = {0}", b);
c = money %1000 %500/100;
Console.WriteLine("B100 = {0}", c);
d = money % 1000 %500 %100 /50;
Console.WriteLine("B50 = {0}", d);
e = money %1000 %500 %100 %50 /20;
Console.WriteLine("B20 = {0}", e);
f = money %1000 %500 %100 %50 %20 /10;
Console.WriteLine("B10 = {0}", f);
g = money %1000 %500 %100 %50 %20 %10 /5;
Console.WriteLine("B5 = {0}", g);
h = money %1000 %500 %100 %50 %20 %10 %5/1;
Console.WriteLine("B1 = {0}", h);