Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.OutputEncoding = Encoding.UTF8;
- //Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
- Console.WriteLine("Enter income:");
- double income = double.Parse(Console.ReadLine());
- if (income < 6310)
- {
- double tax = income * 0.10;
- Console.WriteLine(tax.ToString("C2"));
- }
- else if (income > 6310 && income < 9050)
- {
- double tax = income * 0.14;
- Console.WriteLine(tax.ToString("C2"));
- }
- else if (income > 9050 && income < 14530)
- {
- double tax = income * 0.20;
- Console.WriteLine(tax.ToString("C2"));
- }
- else if (income > 14530 && income < 20200)
- {
- double tax = income * 0.31;
- Console.WriteLine(tax.ToString("C2"));
- }
- else if (income > 20200 && income < 42030 )
- {
- double tax = income * 0.35;
- Console.WriteLine(tax.ToString("C2"));
- }
- else if (income > 42030)
- {
- double tax = income * 0.47;
- Console.WriteLine(tax.ToString("C2"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement