我有以下 C# 源代码:
public static bool PeulaRashit()
{
int days;
double totalPayForService;
Console.WriteLine("Enter number of days");
days = int.Parse(Console.ReadLine());
if (days== 999)
return false;
totalPayForService = TotalService(days);
TotalPyament(totalPayForService, days);
return true;
}
static void Main(string[] args)
{
while (.....) //what should I do here?
{}
}
我希望该PeulaRashit
方法重复,直到它是false
. 我的问题是应该是什么条件while
才会发生?