I am trying to make a back deposit system that requires user to deposit amount of 65000, account holder should be keep deposing money until full amount of 65000 is paid. I tried to do this with do while loop but it is just working as variable and not checking how much money is paid. Here is sample of code:
int user_fee;
int deposited=65000;
do
{
Console.WriteLine("please enter fee");
user_fee = Convert.ToInt32(Console.ReadLine());
obj.Fee = user_fee;
} while (user_fee<= deposited);