#include <stdio.h>
int main()
{
int i, a, b = 100000;
for (a = i = 0; i < 6; i++) printf("%d\n", a += (b /= 10));
return 0;
}
この式をwhileに変換するとどうなりますか?