Teachers
Showing posts with label
following
.
Show all posts
Showing posts with label
following
.
Show all posts
Monday, February 16, 2015
C Program to Print following series 1 4 7 10 40
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,a=-1,b;
for(i=1;i<=40;i+=3)
{
a*=-1;
b=i;
b*=a;
cout<<b<<" ";
}
getch();
}
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)