#include <iostream>
void main ()
{
std::cout<< ........
用if else 语句
}
我算了算总共有80种情况啊 - -要不断if else 有没有简单点的办法呢。。我想了几天也没搞懂
C++:找出两个正整数m和n之间所有的绝对素数(m和n在1000以内,要求每行...
(n%i)) return false; return true;}int main(void){ int m,n,i,sum;char a[11];while(1){cout << "Enter m & n(0<m<=n<=1000)...\\n";cin >> m >> n;if(m>0 && m<=n && n<=1000) break;cout << "Error, redo: ";}cout << "They are as following:\\n...