public static void Main()
decimal[] TaxableAmount = {0M,
for (int i=0 ; i< vat.Length; i++)
if(TaxableAmount[i] != 0M)
var a = Math.Round( vat[i] / TaxableAmount[i] * 100.0M, 2);
var b= Convert.ToInt32(Math.Round(vat[i] / TaxableAmount[i], 2) * 100.0M);
Console.WriteLine("Gateway Bad Logic:{0}---Gatewayway Good Logic {1}",a,b);