#include main() { int toplam; for (int i=1; i <= 10; i++) { toplam = 1; printf("1 "); for (int j=2; j <= i; j++) { if (j % 2 == 0) { toplam += j; printf("+ %d ", j); } else { toplam -= j; printf("- %d ", j); } } printf("= %d\n", toplam); } }