fun section ☺
jokes & cartoons

Can anyone fix the bug in this code?

#include < stdio.h >
#define LAST 10

int main() {
    int i, sum = 0;
    for ( i = 1; i < = LAST; i++ ) {
        sum += i;
    }

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

Share this

previous home next