Wednesday, 19 March 2014

C Program for Use of break keyword in while loop

/* Use of break keyword in while loop */
main( )
{
int  i = 1 , j = 1 ;
while ( i++ <= 100 )
{
while ( j++ <= 200 )
{
if ( j == 150 )
break ;
else
printf ( "%d %d\n", i, j ) ;
}
}
}

No comments:

Post a Comment