Add them up.
55
The sum of 1 through 250 is 31,375.
The sum of 10*1 is 10.
The sum of the numbers 1 through 27 is 378.
Add them up.
55
The sum of 1 through 250 is 31,375.
The sum of 10*1 is 10.
The sum of the numbers 1 through 10 is 55.
The sum of the numbers 1 through 27 is 378.
The sum of the numbers from 1 through 100 is 5,050.
The sum of the whole numbers 1 through 1,000 is 500,500.
main() { sum=0; float avg=0.0; int sqr[10]; for(i=1;i<=10;i++) { sqr[i]=(i*i); } for(i=1;i<=10;i++) { sum=sum+sqr[i]; } avg=sum/10; dts it !!!
10 for t = 1 to 50 20 input a 30 c = c + a 40 next t 50 print c
1/10 , 3/10 , 6/10 . Their sum is (1+3+6)/10 = 10/10 = 1
The numerators need to sum to 10 so that you have 10/10 or 1. 2/10 + 3/10 + 5/10 = 1