close

我努力有成阿

這是我第一次寫c++

終於在奮鬥了五小時後

把我第一份作業交出去了= =+

po在下面以作紀念

有些br/指的是空行
因為我丟的東西可能太怪
所以它錯亂了

-----------------------------------------------------------------
#include
using namespace std;

int main( )
{
int endness,start,countup=2,rest;
cout cin>>start;
cout cin>>endness;
while(endness-start>0 && countup {
rest=start%countup;
if(rest==0 && countup==start)
{
cout countup=2,++start;
continue;
}
else if(rest==0 && countup {
countup=2,++start;
continue;
}
else
{
++countup;
continue;
}

}
while(endness-start {

cout break;
}


return 0;
}






格式不大對

不過大致如此

我會作從3~100的質數了

耶耶.....>v<.....>
學長說"這門課.........死..也要過去"


吐血中



arrow
arrow
    全站熱搜
    創作者介紹
    創作者 angledark0123 的頭像
    angledark0123

    CONY的世界

    angledark0123 發表在 痞客邦 留言(0) 人氣()