Advertisement
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;
}
On Mobility, Computing and Life
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;
}
Previous post: Make your Ubuntu desktop more beautiful
Next post: Get MSDN and DDJ magazines for FREE
{ 5 comments… read them below or add one }
lol hehehe nice one :P
lol by the way you need a header file to get rid of this bug :P
whoa.. was able to locate the bug.. Now writing a book on “How to kill a neighbor bloggers bug?” lol
Hey
That was funny.. dude
:-))
Wish bugs were that visible when you see the code ;)
:-) this is the funniest thing I have seen in a long time!!!