Contact: aviboots(AT)netvision.net.il
39,844 questions
51,765 answers
573 users
#include <stdio.h> int main(void) { int i, negative = 1; for (i = 1; i <= 10; i++) { printf("%4d", i * negative); negative *= -1; } return 0; } /* run: 1 -2 3 -4 5 -6 7 -8 9 -10 */