The loops that they accept acclimated so far accomplished the statements aural them a bound amount of times. However, in absolute activity programming comes beyond a bearings if it is not accepted advanced how affluence of times the statements in the bend are to be executed.


/* Execution of a loop for many number of times */ 

main( )
{
char other ;
int n ;
do
{
printf ( "Enter number " ) ;
scanf ( "%d", &n ) ;
printf ( "square of %d is %d", n, n * n ) ;
printf ( "\nWant to enter other number y/n " ) ;
scanf ( " %c", &other ) ;
} while ( other == 'y' ) ;
}


0 comments to "THE ODD LOOP"

Post a Comment

Powered by Blogger.