相关代码 |
|
#include int main (void) { int j; for (j = 5; j > 0; j--) printf("j = %i \n", j); j = 5; printf("\n and again \n"); for (j = 5; j > 0; j--){ printf("j = %i ", j); printf("%s \n", ((j%2 == 0)? "even":"odd")); /* test ? value if true : value if false */ } return 0; }
相关资源 |
|