Thursday

Write a C program to print 10 terms of the following series using FOR loop, 1, 5, 9, 13

#include<stdio.h>
#include<conio.h>
void main()
  {
    int i,a=1;
    clrscr();
            for(i=0;i<10;i++)
     {
      printf("%d\t",a);
      a=a+4;
    }

  getch();
  }

No comments:

Post a Comment

Rahul-Notes