Pompal 09.
Well-Known Member
- Joined
- Feb 9, 2011
- Messages
- 43,916
- Reaction score
- 52
- Points
- 48
/* add.c
* a simple C program
*/
#include
#define LAST 10
int main()
{
int i, sum = 0;
for ( i = 1; i != LAST; i++ )
{
sum += i;
} /*-for-*/
printf("sum = %d\n", sum);
return 0;
}
* a simple C program
*/
#include
#define LAST 10
int main()
{
int i, sum = 0;
for ( i = 1; i != LAST; i++ )
{
sum += i;
} /*-for-*/
printf("sum = %d\n", sum);
return 0;
}