#include int main(void){ char s[9]; int i=0; while(1){ printf("%03d\n",i); gets(s); if(s[0]=='l') break; } }