c program to print series of 5n+2 but skip the multiple of 3 ,print first 10 terms
#include"stdio.h"
#include"conio.h"
void main()
{
int i,no,j=10;
clrscr();
printf("Series of 5n+2 but skipping multiple of 3=\n\n");
for(i=1;i<=j;i++)
{
no=(5*i)+2;
if(no%3==0)
{
j++;
}
else
{
printf(" %d",no);
}
}
getch();
}