write a program in java to find the GCD of two given numbers
Answers
Answered by
3
Hyy Dude
1) Example 1: Find GCD of two numbers using for loop and if statement. Here, two numbers whose GCD are to be found are stored in n1 and n2 respectively. Then, a for loop is executed until i is less than both n1 and n2 . This way, all numbers between 1 and smallest of the two numbers are iterated to find the GCD.
May this helps you
Plz marked in brainlest answer
Answered by
4
Explanation:
Hyy Mte
I don't know much about Java but still
mark me brainliest
Similar questions