C programming in series print in different types of series using different methods. Series is:- 1/1,1/2,1/3,1/4,1/5,...........
Series in C programming code
#include<stdio.h>
#include<conio.h>
void main()
{
int n, i;
clrscr();
printf("\n Enter the number of terms ");
scanf("%d",&n);
printf("\n First %d terms of series are :-",n);
for ( i = 1 ; i <= n ; i++ )
{
printf(" 1/%d,",i);
}
getch();
}
Output:-

Series in C programming code
#include<stdio.h>
#include<conio.h>
void main()
{
int n, i;
clrscr();
printf("\n Enter the number of terms ");
scanf("%d",&n);
printf("\n First %d terms of series are :-",n);
for ( i = 1 ; i <= n ; i++ )
{
printf(" 1/%d,",i);
}
getch();
}
Output:-
