By mistake, you wrote here for(int i=0;i>12;i++)
. For a loop, the value i
initialized to 0 first, and then the condition i>12
is checked, which is false, so your program does not enter the block of the for loop and prints nothing. If you want the for loop block to be executed, enter for(int i=0;i<12;i++)
and everything will be correct.
source share