3 Topics

Member Avatar for
Member Avatar for BogdanCov

Hello guys. I need an idea. How can I calculate GCF of many numbers? I thought I could calculate two by two numbers, but it not seems to be a very effective idea. There is my function: int gcf (unsigned int x, unsigned int y) { return (y == 0) …

Member Avatar for tapananand
0
228
Member Avatar for abhishekagrawal

Hi All, I am writing a program to find the number between 1 and 100 that has the greatest number of distinct divisors. Below is my code for the same. It is returning an erroneous answer, i.e. 8 for greatest number of distinct divisors and 4 as the number for …

Member Avatar for nullptr
0
189
Member Avatar for MrHardRock

Hey everyone, I recently had the assignment to write a recursive program to calculate greatest common denominator. I barely understood recursion when our instructor explained it to us. I understood how it works and calling on itself I am just bad at implementing it. I think I almost got my …

Member Avatar for MrHardRock
0
286

The End.