You need at least two numbers to find either an LCM or a GCF.
To find the GCF and LCM at least two or more numbers must be given
To find the LCM and GCF of numbers at least two or more numbers are neeeded.
The LCM is: 825The GCF is: 5
You need at least two numbers to find either a GCF or an LCM.
The LCM of two numbers multiplied by their GCF will equal the product of the original numbers. If you know the LCM, divide it into the product. The result will be the GCF.
The GCF of two numbers multiplied by their LCM will equal the product of the original numbers. If you know the GCF, divide it into the product of the two. The result will be the LCM. If the GCF of two numbers is 1, the LCM is their product.
To find the GCF and the LCM you have to first at least try to use prime factorization. So use factor trees. Or for the LCM find th least common multiples of the number.
#include<stdio.h> main() { int a,b,i,lcm,gcf; printf("\n Enter two numbers"); scanf("%d%d",&a,&b); for(i=0;i<=a;i++) { if((b%i==0)&&(a%i==0)) { gcf=i; } } lcm=a*b/gcf; printf("\n GCF is %d and LCM is %d",gcf,lcm); }
You need at least two numbers to find a GCF or an LCM and the LCM of those numbers can never be less than the GCF. 12 and 360 have a GCF of 12 and an LCM of 360. So do 60 and 72.
The GCF is 39 The LCM is 2457.
The product of the original numbers is equal to the product of the GCF and LCM. Divide the product of the LCM and GCF by the one number. The answer will be the other.