Ŀ

գҪıйص䡣
һrepeat (0<repeat<10)repeat㣺
һΪ־е͡
Ҫ͵úeven(n) жżԣnΪżʱ1򷵻0βnintint
ʾ˵

2     (repeat=2) 
12 9 7 18 3 11 20 0
11 8 6 17 2 10 19 -1

The sum of the odd numbers is 30.
The sum of the odd numbers is 47.



#include <stdio.h>
int even(int n);
int main(void)
{
    int n, sum;
    int ri, repeat;

    scanf("%d", &repeat);
    for(ri = 1; ri <= repeat; ri++){	
        scanf("%d",&n);
/*---------*/
        printf("The sum of the odd numbers is %d.\n", sum);
   }
}

/*---------*/
