C program to find GCD of 2 numbers using for loop
Answers
Answered by
0
Here are the steps -
- Declare two variables, say x and y
- Run a loop for x and y from 1 to max of x and y.
- Check that the number divides both x and y numbers completely or not. If divides completely store it in a variable.
Similar questions