Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#6 Write a big.cpp program that does the following: 1. Ask the user to enter a positive integer with at least 2 digits. 2. If
#6 Write a big.cpp program that does the following: 1. Ask the user to enter a positive integer with at least 2 digits. 2. If the user enters an invalid input, ask to try again. 3. Print out the biggest integer in the user's number For example, if the user enters 167256.The program prints: 7 #7 Write a factor.cpp program that does the following: 1. Ask the user to enter a 2-digit number, and store it as an int. 2. If the input is not a 2-digit number, repeatedly ask the same question until the user enters a 2-digit number. 3. Print all positive factors of the number, in ascending order, one per line. A number i is a factor of n if when you divide n by i, the remainder is 0. 4. Then print the total number of factors. Example Enter a 2-digit number: 15 Factors: 3 5 15 15 has 4 factors
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started