#include <stdio.h>
#include <conio.h>
main()
{
//1 -100
int i=0,n;
float x;
l1:
x=0;
printf("Enter the number: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
x=x+i;
}
printf("sUM OF 100 = %.1f",x);
printf("\n\n\n");
printf("----------------------------------------------");
goto l1;
}
No comments:
Post a Comment