有以下程序段 int n,t=1,s=0; scanf("%d",&n); do{ s=s+t; t=t-2; }while (t!=n); 为使此程序段不陷入死循环,从键盘输入的数据应该是
A.
任意正奇数
B.
任意负偶数
C.
任意正偶数
D.
任意负奇数
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【单选题】In Anglo-America there are three major ethnic groups. The first is the original Indian population, who today represents a minority group. The second is the descendants of European colonists who emigra...
【单选题】In Anglo-America there are three major ethnic groups. The first is the original Indian population, who today represents a minority group. The second is the descendents of European colonists who emigra...
【单选题】In Anglo-America there are three major ethnic groups. The first is the original Indian population, who today represents a minority group. The second is the descendents of European colonists who emigra...