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
Genrish500 [490]
3 years ago
7

Write a program that reads in a list of numbers, and for each number, determines and prints out whether or not that number is ab

undant.
Computers and Technology
1 answer:
adelina 88 [10]3 years ago
7 0
int IsAbundant(int n)
{
int divisorSum = 0;
for (int i = 1; i < n; i++) {
 if ((n % i) == 0) {
  divisorSum += i;
 }
}
return divisorSum > n;
}


int main()
{
int number = 0;
do {
 printf("Enter a number (0 to quit): ");
 scanf_s("%d", &number);
 if (IsAbundant(number)) {
  printf("%d is abundant!\n", number);
   } else
   {
    printf("%d is not abundant.\n", number); }
   } while (number > 0);

   return 0;
}

You might be interested in
True are fulse A piece of information that is considered common knowledge does not need a citation
antiseptic1488 [7]
False common knowledge<span> and must always be </span>cited<span>.</span>
4 0
2 years ago
Read 2 more answers
When cleaning a firearm, what end of the firearm should you generally clean from?
weqwewe [10]

Answer:

Explanation:

You should always clean from the breech (chamber) end. On firearms that you don't have access to the breech, you should put the cleaning rod through the muzzle to the breech. Then place the cleaning patch or brush on the end of the rod. Then PULL the rod through the barrel and out of the muzzle.

8 0
2 years ago
Read 2 more answers
- If we place records from different tables in adjacent____________, it would increase efficiency of a database.
tiny-mole [99]

Answer: Physical location

Explanation:

If we place records from, different tables in adjacent physical location, it would increases efficiency of a databases as, database consolidates records from previously store in separate files into a common file. Databases are fast and efficient when they are dealing with large data. When all the information is stored in multiple physical location it is also known as distributed database, as physical location helps to provide the physical and logical path and also protect from default locations in the database.

3 0
3 years ago
Were is the hype house
balandron [24]

Answer:

LA

Explanation:

where the rich people live

8 0
2 years ago
Read 2 more answers
Which camera is interchangeable<br><br> freeform<br><br> hybrid<br><br> DSLR<br><br> point and shoot
soldier1979 [14.2K]

Answer:

DSLR

Explanation:

Double check my answer

3 0
2 years ago
Other questions:
  • 1. How does inertia affect a person who is not wearing a seatbelt during a collision? 
    14·2 answers
  • Binary code what does this mean I was sick so I don't under stand
    7·2 answers
  • Describe how one can change row and height
    6·1 answer
  • Question No. 5:
    7·1 answer
  • Stock Market
    11·1 answer
  • What is a mod in programming?<br><br> Give more Java questions
    12·1 answer
  • Kinda strange, and im good
    11·2 answers
  • Bob has started a company and registered its name with the government as a private corporation. He tries to create a domain name
    12·1 answer
  • write a recursive bool valued function containsvowel that accepts a string and returns true if the string contains a vowel
    6·1 answer
  • question 1 scenario 1, question 1-5 you’ve just started a new job as a data analyst. you’re working for a midsized pharmacy chai
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!