What Is An Odd Loop?

2

2 Answers

Koushikinath Misra Profile
/* odd loop using a for loop */
main( )
{
char another = 'y' ;
int num ;
for ( ; another == 'y' ; )
{
printf ( "Enter a number " ) ;
scanf ( "%d", &num ) ;
printf ( "square of %d is %d", num, num * num ) ;
printf ( "nWant to enter another number y/n " ) ;
scanf ( " %c", &another ) ;
}
}
bilal zaib Profile
bilal zaib answered
loop is define as"the reptation of data according to the given conditions "so odd loop is that loop which only repeat the odd numbers & it leave  
the even numbers".

Answer Question

Anonymous