Friday, April 10, 2015

15. Write a c program to print first 10 terms of the following series using FOR loop. 1,5,9,13,.....


#include<stdio.h>
#include<conio.h>
void main()
{
iint i,temp=1;
clrscr();
for(i=0;i<10;i++)
  {
  printf("%5d",term);
  term=term+4;
}
getch();
}

No comments:

Post a Comment