1. ## Another loop question

this is what i have done with my program but the value of the sum is not coming up and i need help on this.
this is what the program should supposed to do

write a program to calculate the sum of numbers. the user enter the starting number, the largerst number. and the step size of the numbers to be added. For example, if the user enters 5 12 2. the program will calculate the sum of:

5+7+9+11

and it should input the TABLE of values in the format shown below:

PHP Code:
``` VALUE      SUM 5          5 7          12 9          21 11         32  ```

The sum of the number is 32

Code:
```#include<stdio.h>
#include<conio.h>
#include<stdlib.h>

main()
{
int a,b,c,t;
scanf("%i%i%i",&a,&b,&c);
for (a>=5;a<=11;a+=2)

{

printf("\n%i",a );

}

getch();

}```

2. Code:
`     for (a>=5;a<=11;a+=2)`
This should probably be:
Code:
`     for (a=5;a<=11;a+=2)`
But you are also not performing any calculation in the loop.

--
Mats

3. i dont understand what kind of calculation i should make, but what i know is taht there should be a function that will scanf 3 numbers and call to main