find the percentage
for 100 (33%) we get 133 how in asp.net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Jun 26, 2014, 1:47 AM
int amt,a,res;
Console.Write("Enter Amount: ");
amt = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter Percentage: ");
a= Convert.ToInt32(Console.ReadLine());
res = amt + ((amt * a) / 100);
Console.Write("Percentage: " + res);
Console.Read();