有以下程序:
#include <stdio.h> int main()
{
int s, a, n; s = 0; a = 1;
scanf("%d", &n);
do {
s += 1;
a -= 2;
}
while (a != n);
printf("%d\n", s);
A. -1 B. -3 C. -5 D. 0
-1
-3
-5
0
发表评论