Find the percentage
for 100 (33%) we get 133 how in asp.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Abhay ShankerRank #375 · 6.7K reputationPosted Jun 25, 2014, 9:47 PM EDT
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();