//שאלה 7
using System;
decimal result = TaxCalco(70000);
Console.WriteLine(result);
public static decimal TaxCalco(decimal income)
{
decimal tax = 0;
if (income <= 10000)
tax = 0;
}
else if (income <= 50000)
tax = (income - 10000) * 0.10m;
else
tax = (50000 - 10000) * 0.10m + (income - 50000) * 0.20m;
return tax;