short number,n; bool prime; cin>>number; for(n=2;n

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 06:56:07
short number,n; bool prime; cin>>number; for(n=2;n

short number,n; bool prime; cin>>number; for(n=2;n
short number,n; bool prime; cin>>number; for(n=2;n

short number,n; bool prime; cin>>number; for(n=2;n
你的思路是对的,应该不会出现这样的情况.你看看这样写如何.
#include
#include
using namespace std;
int main(){
\x05short number,n;
\x05bool prime;
\x05cin>>number;
\x05if ( number