Thursday, June 21, 2007

Please help me get the bug out of my code..
From: Rajarajan @ Tech Mahindra(Singapore)

/* add.c
* a simple C program
*/
#include stdio.h

void main()
{
int i, sum = 0;
for ( i = 1; i >10; i++ )
Photo Sharing and Video Hosting at Photobucket
{

sum += i;} /*-for-*/
printf("sum = %d\n", sum);
return 0;

Labels:

0 Comments:

Post a Comment

<< Home