`1#include<stdio.h> int main() {
int i = 0; double a, b = 100; scanf("%lf", &a); for (; b - 100 < 100;i++ ) b = b * (1 + a); printf("%d", i); return 0;
}
当然用for while /dowhile/if 都是可以的