问题标题: 酷町堂:1009求符合条件的十个数(为啥报错)

0
1
已解决
孙天意
孙天意
资深守护
资深守护

#include<iostream>
using namespace std;
int main(){
    int a=0;
    for(j=1;j<=10;j++){
        cout<<a*2*3*5+1<<endl;
        a++;
    }
    return 0;
}


0
已采纳
如意
如意
初级光能
初级光能

是枚举,不是找到答案直接输出

我觉得要加if--else

0
0
0
林子尧
林子尧
高级守护
高级守护

把"j"换成“i”

不要“i n t a=0;”

把"j=1;"换成“j=0;”

把"c o u t <<a*2*3*5+1;"换成“c o u t <<a*2*3*5+1;”

不要“a++;”

 

0
我要回答