#include<stdio.h>
#include<conio.h>
void main()
{
int
i=1,sum=0,no;
clrscr();
printf(“Enter
the number:”);
scanf(“%d”,&no);
while(i<=no)
{
i++;
}
printf(“sum
of %d is %d”,no,sum);
getch();
}
Output:
Enter the
number: 5
No comments:
Post a Comment