What does this program do, nested for loop - C Statement

C examples for Statement:for

Description

What does this program do, nested for loop

Demo Code

#include <stdio.h> 

int x,y; /*from   w  ww. j av a2s  . c  om*/

int main()
{ 
    for ( x = 0; x < 10; x++, printf( "\n" ) ) 
        for ( y = 0; y < 10; y++ ) 
            printf( "X" ); 
 
    return 0; 
 }

Result


Related Tutorials