Brijmohan lal Sahu - Facebook
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label continue. Show all posts
Showing posts with label continue. Show all posts

Sunday, November 2, 2014

Program to print table of all odd numbers less than 10, Using flow control terms Break & Continue in C.



Code box
--------------------------------------

/*Program to print table of all odd numbers less than 10. Useing flowcontrol
terms  Break & Continue. */


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
for(a=1;;a++)
{

if(a>=10)
{ break;
}
else
if(a%2==0)
{continue;
}
else
{
for(b=1;b<=10;b++)
{
printf("  %d",b*a);
}

}

printf("\n");
}
getch();
}