The full form of LCM in Maths is Least Common Multiple, whereas the full form of HCF is the Highest Common Factor.
The H.C.F. defines the greatest common factor present in between given two or more numbers, whereas L.C.M. defines the least common multiple between two numbers or more numbers.
HCF of 2,8
Factors of 2=1,2
Factors of 8=1,2,4,8
Highest common factor (HCF) =2
LCM of 2 and 4
Multiples of 2=2,4,8,......
Multiples of 4 =4,8,12,......
LCM of (2,4)=4