Thank you thank you greatly,
CodePudding user response:
Int a=0, aa=0, aaa=0;
While (1)
{
Cin> a;
if(! A) break;
if(! (a % 2)) + + aa, aaa +=a;
}
Cout
CodePudding user response:
void sum_even (void)
{
Int num, CNT=0, sum=0;
While (the scanf (" % d ", & amp; Num) & amp; & Num) {
If (num & gt; 0 {
Cnt++;
The sum +=CNT;
}
}
Printf (" sum=% d \ n ", sum);
}
For your reference ~
CodePudding user response:
The scanf=& gt; Cin
Printf=& gt; cout
CodePudding user response: