Write an algorithm to give bonus of Rs 1000 to those employees whose salary is more than Rs. 5000
Answers
Answered by
3
Answer:
Int bonus=1000; int net=0; Console.WriteLine("Please Enter Your Salary"); int salary=Convert.ToInt32(Console.ReadLine()); if(salary <= 15000 ) { net = salary+bonus; Console.WriteLine("Your Salary is : {0}", salary); Console.WriteLine("Your Bonus is : {0}", bonus); Console.WriteLine("Your Net Salary is : {0}", net); } Console.ReadLine();
Similar questions