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 *
c++ 程式
PromotionBanner

คำตอบ

ยังไม่มีคำตอบ

ข้อสงสัยของคุณเคลียร์แล้วหรือยัง?