SlideShare a Scribd company logo
4. (Factors of Integers) Write a pseudocode and C++ program that reads an integer and displays
all its smallest factors in increasing order. Hint: You should start by dividing the number by a
factor ( 2 is the starting factor). For example, if the input is 120 , then 120=260. Then, take 60
and divide it by 2,60=230. When the number is not divisible by 2 , increment the factor. So, the
factors of 120 should be: 2,2,2,3,5.

More Related Content

More from amberteleshoppe

4. If there were n arrivals of a Poisson process with Sn being th.pdf
 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf
4. If there were n arrivals of a Poisson process with Sn being th.pdf
amberteleshoppe
 

More from amberteleshoppe (20)

4. Inflation and interest rates The following table shows the avenge .pdf
 4. Inflation and interest rates The following table shows the avenge .pdf 4. Inflation and interest rates The following table shows the avenge .pdf
4. Inflation and interest rates The following table shows the avenge .pdf
 
4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
 4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf 4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
4. In the sub-basement of the 600 3. Michigan Ave, building, a bone f.pdf
 
4. Implement a class, Car, which represents a car and can simulate it.pdf
 4. Implement a class, Car, which represents a car and can simulate it.pdf 4. Implement a class, Car, which represents a car and can simulate it.pdf
4. Implement a class, Car, which represents a car and can simulate it.pdf
 
4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
 4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf 4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
4. Imagine that you crossed (mated) two true-breeding (homozygous) pa.pdf
 
4. If there were n arrivals of a Poisson process with Sn being th.pdf
 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf 4. If there were  n  arrivals of a Poisson process with Sn being th.pdf
4. If there were n arrivals of a Poisson process with Sn being th.pdf
 
4. How do you go back to the standardcanonical form for a LP when a.pdf
 4. How do you go back to the standardcanonical form for a LP when a.pdf 4. How do you go back to the standardcanonical form for a LP when a.pdf
4. How do you go back to the standardcanonical form for a LP when a.pdf
 
4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
 4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf 4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
4. Identify the tissue. 1pt. 5. Identify the tissue. Name two of its .pdf
 
4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
 4. If we wanted to store Bill Gates net worth accurately to the penn.pdf 4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
4. If we wanted to store Bill Gates net worth accurately to the penn.pdf
 
4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
 4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf 4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
4. Henry, age 35, is a stay at home dad. His wife, Melissa, age 34 , .pdf
 
4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
 4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf 4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
4. Given a random variable XN(,2) and a fixed quantity 01, define t.pdf
 
4. Find the dimension and a basis representation of the subspace H=sp.pdf
 4. Find the dimension and a basis representation of the subspace H=sp.pdf 4. Find the dimension and a basis representation of the subspace H=sp.pdf
4. Find the dimension and a basis representation of the subspace H=sp.pdf
 
4. Explain how salt regulation is related to water regulation. How do.pdf
 4. Explain how salt regulation is related to water regulation. How do.pdf 4. Explain how salt regulation is related to water regulation. How do.pdf
4. Explain how salt regulation is related to water regulation. How do.pdf
 
4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
 4. Fill in the blanks with one of the following terms Deletion; Inve.pdf 4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
4. Fill in the blanks with one of the following terms Deletion; Inve.pdf
 
4. Details about shareholders equity and dilutive securities CHAP.pdf
 4. Details about shareholders equity and dilutive securities CHAP.pdf 4. Details about shareholders equity and dilutive securities CHAP.pdf
4. Details about shareholders equity and dilutive securities CHAP.pdf
 
4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
 4. Consider two unitary transformations II and UCNOT. What is the hig.pdf 4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
4. Consider two unitary transformations II and UCNOT. What is the hig.pdf
 
4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
 4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf 4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
4. Bechtel Corp.s common shares are trading for $45.83 per share. Th.pdf
 
4. Consider a finite set X and a rational preference relation on X. .pdf
 4. Consider a finite set X and a rational preference relation  on X. .pdf 4. Consider a finite set X and a rational preference relation  on X. .pdf
4. Consider a finite set X and a rational preference relation on X. .pdf
 
4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
 4. Consider two qubit states 0 and =(01)2 generated with probability.pdf 4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
4. Consider two qubit states 0 and =(01)2 generated with probability.pdf
 
4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
 4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf 4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
4. Calculating the marginal rate of substitution (MRS) Raphael likes .pdf
 
4. Case study. - As part of a formal risk assessment of the main file.pdf
 4. Case study. - As part of a formal risk assessment of the main file.pdf 4. Case study. - As part of a formal risk assessment of the main file.pdf
4. Case study. - As part of a formal risk assessment of the main file.pdf
 

Recently uploaded

IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 

Recently uploaded (20)

Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 

4. (Factors of Integers) Write a pseudocode and C++ program that re.pdf

  • 1. 4. (Factors of Integers) Write a pseudocode and C++ program that reads an integer and displays all its smallest factors in increasing order. Hint: You should start by dividing the number by a factor ( 2 is the starting factor). For example, if the input is 120 , then 120=260. Then, take 60 and divide it by 2,60=230. When the number is not divisible by 2 , increment the factor. So, the factors of 120 should be: 2,2,2,3,5.