Engineering & Technology
大学生・専門学校生・社会人
想請問各位,為何此程式只有顯示出亂數,沒有顯示其因數,請問有哪裡需要更改的
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <iostream>
using namespace std;
int main() {
int n 10;
int i
1;
srand ( (unsigned) time (NULL));
while (n-- > 0)
printf("%d\n", (150-50) rand () / (RAND_MAX) + 50) ;
while (i<=n]{
|if (n¾i==0) {
cout<< i <<
}
|i=i+1;
|}
|1=1,
return 0;
HI
II
*
回答
まだ回答がありません。
疑問は解決しましたか?
この質問を見ている人は
こちらの質問も見ています😉
おすすめノート
【3年】化学変化とイオン-水溶液・イオン・酸・アルカリ-
11248
114
【2年】化学変化と原子・分子-物質の変化・化学反応式-
9820
138
【1年】大地の変化-火成岩・地震・地層-
9074
189
【2年】天気とその変化-気象・水蒸気-
8959
96