#include int main() { double p=10000, p0=p; int y; y = 0; while (p < 2*p0) { printf("%3d年目は%10.2f円\n", y, p); p *= 1.05; y++; } }