Generation

generate functionMon, 19 Dec 2022

一年で平均5%改善する燃費が2倍になるのは何年後か

# double mpg = 10; int years = 0; while (mpg < 20) { mpg += mpg * 0.05; years += 1; } Console.WriteLine($"{years} years");

Questions about programming?Chat with your personal AI assistant