Question: I need a c++ program with these Quiet numbers are 3-digit numbers (between 100 and 999) whose multiplication of their digits is less than the
I need a c++ program with these
Quiet numbers are 3-digit numbers (between 100 and 999) whose multiplication of their digits is less than the factorial of the last digit.
A program reads a 3-digit number and writes one (1) if it is a quiet number and zero (0) otherwise.
================================================== ==========
For example, if the number 955 is read, zero (0) will be printed on the screen since 9 * 5 * 5 = 255 which is greater than 5! = 120
entry: 955
output: 0
================================================== ==========
For example, if the number 155 is read, one (1) will be printed on the screen since 1 * 5 * 5 = 25 than less than 5! = 120
input: 155
output: 1
================================================== ==========
For example, if the number 78 is read, zero (0) will be printed on the screen since it is not a 3-digit number
input: 78
output: 0
EXAMPLE
#include
using namespace std;
int main(){
//WRITE YOUR CODE HERE
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
