using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Bank
{
public class Program
{
public static void Main(string[] args)
{
double minimumInterestRate;
double minimumBalanceAllowed;
double maximumWithdrawalLimit;
do
{
Console.Write("Enter interest rate: ");
minimumInterestRate = double.Parse(Console.ReadLine());
if(minimumInterestRate < 4)
{
Console.WriteLine("Interest rate can't be lower than 4%");
}
}while(minimumInterestRate < 4);
Console.Write("Enter minimum balance allowed: ");
minimumBalanceAllowed = double.Parse(Console.ReadLine());
Console.Write("Enter maximum withdrawal limit: ");
maximumWithdrawalLimit = double.Parse(Console.ReadLine());
}
}
}
Comments
Leave a comment