Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  bahram
Language: C/C++
Code:
#include <stdio.h>

main() {

    int i = 0,  x = 0;
    for(i = 1; i < 10; ++i) {
        if (i % 2 == 1)
            x += i;
        else
            x--;
        printf("%d", x);

    }
    printf("nx = %d", x);
}
          
Comments: