Summation of 1 to n Numbers of Numbers
#include<stdio.h>
void main()
{
int i,sum=0,num;
printf("Enter the Number: ");
scanf("%d",&num);
for(i=1; i<=num; i++)
sum=sum+i;
printf("The Summation is: %d",sum);
}
All rights reserved to Uzzwal Dhali © 2009 -
No comments:
Post a Comment