1+2+3+4+5+......+99+100
2015-04-29 02:18:30 -0400
#include<stdio.h>
void main()
{
float sum;
int i=1;
sum=0;
while(i<=100)
{sum+=i;
i++;
}
printf("1+2+3+4+5+......+99+100=%f\n",sum);
}
«Newer
Older»
Comment:
Name:
Back to home
Subscribe
|
Register
|
Login
|
N