fork download
  1. #include <stdlib.h>
  2. #include <string.h>
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7. char a[] = "110099";
  8.  
  9. for (int i = 0; i < 20; i++)
  10. {
  11. if ('9' == a[2]) a[2] = '0';
  12. else a[2]++;
  13. printf("%s\n", a);
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
111099
112099
113099
114099
115099
116099
117099
118099
119099
110099
111099
112099
113099
114099
115099
116099
117099
118099
119099
110099