Breaking

Friday, 30 November 2018

Write A Program S=1+2+3+4+…….N Times. Print Value Of S | C Programing | Android Solution


Write A Program S=1+2+3+4+…….N Times. Print Value Of S



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

                printf("\n enter number");
                                scanf("%d",&no);
                for(i=1;i<=no;i++)
                                printf("%d+",i);
                getch();
}


OutPut :-




No comments:

Post a Comment