using System;
public class Program
{
//tax calculation by VALUE
public static void Main()
double pay = 2000;
calculate_pay(pay);
Console.WriteLine(pay);
}
static void calculate_pay(double pay)
//Subtract tax on pay at 22%
pay = pay - subtract_deductions(pay, 22);
static double subtract_deductions(double pay, double percent)
return (pay * percent) / 100;