Please help debug

August 21, 2007 · 5 comments

Bug in code!

#include < stdio.h >
#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;
}

{ 5 comments… read them below or add one }

Dj Flush August 21, 2007 at 7:48 pm

lol hehehe nice one :P

lol by the way you need a header file to get rid of this bug :P

Reply

Benedict Herold August 22, 2007 at 5:24 am

whoa.. was able to locate the bug.. Now writing a book on “How to kill a neighbor bloggers bug?” lol

Reply

Kishore August 24, 2007 at 4:18 am

Hey

That was funny.. dude

Reply

Hrishi August 25, 2007 at 1:13 am

:-))
Wish bugs were that visible when you see the code ;)

Reply

pearl August 27, 2007 at 10:43 pm

:-) this is the funniest thing I have seen in a long time!!!

Reply

Leave a Comment

Previous post:

Next post: