1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pychu [463]
3 years ago
6

A positive integer is called a "self-divisor" if every decimal digit of the number is a divisor of the number, that is, the numb

er is evenly divisible by each and every one of its digits. For example, the number 128 is a selfdivisor because it is evenly divisible by 1, 2, and 8. However, 26 is not a self-divisor because it is not evenly divisible by the digit 6. Note that 0 is not considered to be a divisor of any number, so any number containing a 0 digit is NOT a self-divisor. There are infinitely many self-divisors.
Mathematics
1 answer:
Dmitriy789 [7]3 years ago
4 0

Answer:

// Program is written in C++

// Comments are used for explanatory purpose

// Program starts here

#include<iostream>

using namespace std;

int main()

{

//Declare Variable

int number;

// Prompt to enter a positive number

cout<<"Enter a positive number: ";

cin>>number;

// Test if number is positive

if (number > 0)

{

// Test for self divisibility

// Get length of number

string str = to_string(number);

int length = str.length()

// Convert number to array

int Num[length];

for (int i = length-1; i >= 0; i--) {

Num[i] = number % 10;

number /= 10;

} int checkdiv = 0;

// Check for divisibility

for(int I = 0; I<length-1; I++)

{

if(Num[I] == 0 || Number%Num[I] != 0)

{

checkdiv++;

}

}

if(checkdiv == 0){ cout<<"Number is self divisor";}

else { cout<<"Number is not self divisor";}

}

else

{

cout<<"Number can't be less than 0";

}

return 0;

}

// End of program

You might be interested in
USING THE STANDARD ALGORITHM FOR DIVISION
maw [93]

Refer to the attachment

7 0
3 years ago
A cereal box is an example of a
arsen [322]
Rectangular prism that i know of
5 0
3 years ago
Read 2 more answers
WHERES THE BEEF???????????????????<br> hehehe sorry ab that im just HELLA bored over here ;)
ddd [48]
Me too tbhh school sucks omggg I have to put like an equation because If
5 0
3 years ago
Can someone please help me, im stuck. ​
____ [38]

Answer:

I believe the answer would be 47

Step-by-step explanation:

because the angles of a triangle should add up to 180°

3 0
3 years ago
Read 2 more answers
Can anybody help meee
andre [41]

Answer:

a.) f(2) = 3

b.) if f(x) = 2

x=3

Step-by-step explanation:

Here you must notice that on the graph where x is 2, y or f(x) is at 3. This means that the answer where in the function of x, where the input 2, the output or y/f(x) is 3

And if the output is 2, the input is 3 as proven above.

6 0
2 years ago
Other questions:
  • George believes the Art Club students at his school have an unfair advantage in being assigned to the art class they request. He
    11·1 answer
  • In two or three sentences write down what you think the phrase "Checks and Balances" means.
    11·1 answer
  • Factor each trinomial. Then match the polynomial (term) on the left with its factored form (definition) on the right.
    9·1 answer
  • Round 37.6 to the nearest one
    15·2 answers
  • How do you do prime factorisation for 48/72?
    8·2 answers
  • Solve the inequality -1/2x&gt;2 and write the solution using:
    8·2 answers
  • Please answer the question that is in the photo attached below
    13·2 answers
  • Point e,d, and h are the midpoints of the sides of the triangle TUV. UV = 80, TV=100, and HD = 80
    14·1 answer
  • ✧I need help please ✧<br> »»—I'll give brainliest if correct —««<br> image attachment!
    5·1 answer
  • Wednesday there were 2 clients who did Plan A and 12 who did Plan B. On Thursday there were 5 clients who did Plan A and 3 who d
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!