public static void Main()
decimal dSalary= CalculatingSalary();
Console.WriteLine("Your monthly salary is R:" + dSalary);
Console.WriteLine("Soryy you do not qualify for the loan");
Console.WriteLine("Congratulations you've qualified for the loan!!");
static decimal CalculatingSalary()
Console.WriteLine(" you are welcomed to apply for the loan of R 200000");
Console.WriteLine(" please enter your day payment");
daypayment = int.Parse(Console.ReadLine());
return workdays* daypayment;