4. GCD * LCM = a*b
Where * is the multiplication symbol.
Suppose that the user only enters 3 out of 4 values and -1 for the 4th value. You have to print the 4th value on the basis of the entered values. For example if the user enters 3 and 6 for the values a and b and 3 and -1 for the gcd and lcm then the value of lcm would be 6.
1
Expert's answer
2011-11-25T11:01:22-0500
// StudentName.cpp : Defines the entry point for the console application. //
Comments
Leave a comment