Posted by : Unknown
Rabu, 20 Agustus 2008
#include
#define LAST 10;
int main()
{
int i, sum = 0;
for ( i = 1; i < = LAST; i++ )
{
sum += i;
}
/*-for-*/
printf("sum = %dn", sum);
return 0;
}
And the developer fixes it this way
#include
#define LAST 10 ;
int main()
{
int i, sum = 0;
/*
*/
{
sum += i;
}
/*-for-*/
printf("sum = %dn", sum);
return 0;
}
Rating: 4.5
Reviewer: Unknown
ItemReviewed: How will developer Fix the bug !!!!!