Breaking

Friday, 30 November 2018

Write a Program 1/2 + 2/3 + 3/4 +…..N/N1 | C Programing | Android Solution


Write a Program 1/2 + 2/3 + 3/4 +…..N/N1



#include<stdio.h>
#include<conio.h>
void main()
{
                int i,j,no;
                clrscr();

                printf("\n enter number");
                                scanf("%d",&no);

                for(i=1;i<=no;i++)
                                printf("%d/%d + ",i,i+1);

                getch();

}


OutPut :-



No comments:

Post a Comment