C++编程题1.编写程序,从键盘输入任意一个整数x,判断x的正负性和奇偶性。并能反复判断直到放弃。2. 编写程序,求某个范围M~N(M、N从键盘输入)内所有奇数的积和所有
int n = 0;for (;;) { printf("please intput a number!!\n");char str1[5];gets(str1);n = atoi(str1);if (n <= 0) { printf("input error!!\n");continue;} break;} int total = 0;for (int i = 0; i <= n; ++i) { if (i % 2 == 0) { continue;} ...