Question: How could I do this? Write a function in C that takes four arguments: ni and n2, integers ged and 1cm, each a pointer to
Write a function in C that takes four arguments: ni and n2, integers ged and 1cm, each a pointer to an integer The function will look like this: int calculate (int nl, int n2, int ged, int led); The function should compute the greatest common divisor of n1 and n2 and put that value in *ged; and the least common multiple of ni and n2 and put that in *lcm. If ni and n2 are both zero, then return -1 and don't change the values in ged or lcm; if n1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
