Program in C language please note the outputs need to be 12 = 2 * 2 * 3 (this is an example) not  12 2 * 2 * 3 Description   請寫一個程式做質因數分解 Please write a program for prime factorization.   Input   輸入會包含很多筆測試資料,每一筆測試資料就是一個正整數,當輸入為 0 的時候結束測試。 Input consist several test case. Every test case is just a integer. Input ended with 0.   Output   對每一筆測試資料輸出一行結果,格式請參考範例輸出。 Please reference the sample output.   Sample Input 1  12 81 0 Sample Output 1 12 = 2 * 2 * 3 81 = 3 * 3 * 3 * 3   in C language please

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 8PP: (Statistical) In many statistical analysis programs, data values considerably outside the range of...
icon
Related questions
Question

Program in C language please

note the outputs need to be 12 = 2 * 2 * 3 (this is an example) not 

12
2 * 2 * 3

Description

 

請寫一個程式做質因數分解

Please write a program for prime factorization.

 

Input

 

輸入會包含很多筆測試資料,每一筆測試資料就是一個正整數,當輸入為 0 的時候結束測試。

Input consist several test case. Every test case is just a integer. Input ended with 0.

 

Output

 

對每一筆測試資料輸出一行結果,格式請參考範例輸出。

Please reference the sample output.

 

Sample Input 1 

12
81
0

Sample Output 1

12 = 2 * 2 * 3
81 = 3 * 3 * 3 * 3
 
in C language please
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning