Plz suggest how to fix this 'BUG" in my code.?

1 view
Skip to first unread message

کenthilkumar کenira

unread,
Jan 17, 2010, 10:13:35 PM1/17/10
to mptcf...@googlegroups.com, JaMaAi Group, zerodef...@googlegroups.com

Dear Friends, Belated Pongal Wishes!!!


How to remove this bug from my code????

 #include < stdio.h>
#define LAST 10

int main()
{
int i, sum = 0;

cid:1.2695747594@web94609.mail.in2.yahoo.com
for ( i = 1; i < = LAST; i++ )
{
      sum += i;
}


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

 

Thanks & Regards,
------------------------------------------------------------------------------
SENTHILKUMAR.S
Anchor Ceramic Co. (P) Ltd. Chennai-87.
Direct: +91-44-24869966 | Mob:+91-99-940-41731 |
------------------------------------------------------------------------------



image001.gif
Reply all
Reply to author
Forward
0 new messages