Write a java program to find out HCF (Highest Common Factor) of numbers using for loop.
Eg: num1=12 and num2=18
so HCF= 6
" WRITE INPUT, OUTPUT AND VARIABLE DESCRIPTION TABLE "
Answers
Answered by
0
Answer:
An H.C.F or Highest Common Factor, is the largest common factor of two or more values.
For example factors of 12 and 16 are −
12 → 1, 2, 3, 4, 6, 12
16 → 1, 2, 4, 8, 16
The common factors are 1, 2, 4 and the highest common factor is 4.
Similar questions