public static double While3(double n)
{
double S = 0;
int d = 10,
sumd = 200,
days = 1;
while (S < sumd)
{
days++;
S += d + (d * ( n / 100));
}
return days,S;
}
public static (int, double) While3(double n)
{
double S = 0;
int d = 10,
sumd = 200,
days = 1;
while (S < sumd)
{
days++;
S += d + (d * ( n / 100));
}
return (days,S);
}