In this tutorial learn how you can write a c program to display the series: 1/2 2/3 3/4 4/5…. n-1/n.

We are using for loop only for this tutorial.

C programming is a powerful general-purpose programming language. It can be used to develop software like operating systems, databases, compilers, etc.


Write a C Program to Display the series: 1/2	2/3	3/4	4/5	…. n-1/n



Write a Program to  Display the series: 1/2 2/3 3/4 4/5 …. n-1/n

Here is the code to display the series: 1/2 2/3 3/4 4/5 …. n-1/n in C programming.

#include <stdio.h> //WAP to display the series: 1/2	2/3	3/4	4/5	…. n-1/n
int main()
{
int n, i;
printf("Enter n terms for series:");
scanf("%d", &n);
for (i = 1; i <= n; i++)
{
printf("%d/%dt", i,i+1);
}

return 0;
}

Test Live At Jdoodle


Conclusion

This is how you can display the series: 1/2 2/3 3/4 4/5…. n-1/n in c programming. Comment below if you like our tutorial.