Subscribe For Free Updates!

We'll not spam mate! We promise.

Monday 27 August 2012

C++ code to Displaying this Series using for loop 3, 6, 9, 13,m 16, 19



#include<iostream.h>
#include<conio.h>

int main()

{ clrscr();
  int num=3;
  for(int count=1;count<=6;count++)
  {  cout<<num<<" ";
 if (count==3)
 {
num +=4;
 }
 else
 {
num+=3;
 }
  }
return 0;
}

Socializer Widget By CodingLovers
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment