fork download
  1. #include <stdio.h>
  2. #include <initializer_list>
  3. int main() {
  4. for (int i : {1,3,5,7,9,9,7,5,3,1})
  5. printf ("%.*s\n", i, "I N D I A") ;
  6. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
I
I N
I N D
I N D I
I N D I A
I N D I A
I N D I
I N D
I N
I