Question

1-a-write a function that gets a number as a parameter and returns all its divisors (assume...

1-a-write a function that gets a number as a parameter and returns all its divisors (assume not more than 10 )

b- write a C program that reads two values from the above and prints their common divisors

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1 ehaeThe last part reads two values and then find the minimum out of them for the loop to run and that checks whether the same value divides the numbers or not. If it does, then it prints else continues the loop.

Add a comment
Know the answer?
Add Answer to:
1-a-write a function that gets a number as a parameter and returns all its divisors (assume...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT