बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

c program for print terms of series 3n+2 but stop as soon as multiple of 4 is encountered

c program for print terms of series 3n+2 but stop as soon as multiple of 4 is encountered


#include"stdio.h"
#include"conio.h"
void main()
{
int i,no;
clrscr();
printf("Series of 3n+2 is=\n\n");
for(i=1;i<20;i++)
{
no=(3*i)+2;
if(no%4==0)
{
printf("\n\n Series stop !!Because %d is multiple of 4 !!",no);
break;
}
else
{
printf(" %d",no);
}
}
getch();





c program for print terms of series 3n+2 but stop as soon as multiple of 4 is encountered

C Program example List