class Program
{
static void Main(string[] args)
{
double bankCharges = 0.5f;
Console.WriteLine(“Credit money in the account, pls enter amount between 0 to 2000 $”);
double accountBalance = Convert.ToDouble(Console.ReadLine());
if (accountBalance <= 0 || accountBalance > 2000)
{
Console.WriteLine(“please reenter the amount”);
}
else
{
Console.WriteLine("Withdraw money from the account");
int withdrawAmount = Convert.ToInt32(Console.ReadLine());
if (withdrawAmount % 5 == 0 && withdrawAmount > 0)
{
if (accountBalance >= withdrawAmount + bankCharges)
{
accountBalance = accountBalance - withdrawAmount - bankCharges;
}
}
Console.WriteLine("the account balance now is {0:0.00}", accountBalance);
}
Console.ReadLine();
}
}