蒼穹之憶
13 years ago
悠呼!!!我打好了耶 itsgod.myweb.hinet.net/i...
latest #13
嚕啦啦
13 years ago
給我 給我ˋˊ
蒼穹之憶
13 years ago
#include<iostream> using namespace std; int main() { int i,a=0,x,y; cout<<"請輸入1~100間兩任意整數:"; cin>>x>>y;
HALK_小花
13 years ago
喔~~~
立即下載
蒼穹之憶
13 years ago
cout<<"1~100間能被"<<x<<"和"<<y<<"整除的數有"<<endl; for(i=1;i<=100;i++) if(i%x==0||i%y==0)
蒼穹之憶
13 years ago
{ cout<<i<<"\t"; a+=1; } system("pause"); return 0; }
HALK_小花
13 years ago
那怎麼知道有幾個??
蒼穹之憶
13 years ago
不是醬就好囉
蒼穹之憶
13 years ago
ㄎㄎ
HALK_小花
13 years ago
老師說還要 共有幾個數是可以被整除的!!
HALK_小花
13 years ago
喔喔~~~
HALK_小花
13 years ago
我瞭了!!
HALK_小花
13 years ago
在if裡還要放
HALK_小花
13 years ago
c+=1 ; 這ㄍ
back to top