Computer Science, asked by missphoomyatthwe, 3 months ago

C program to find GCD of 2 numbers using for loop

Answers

Answered by ameyashelardav
0

Here are the steps -

  1. Declare two variables, say x and y
  2. Run a loop for x and y from 1 to max of x and y.
  3. Check that the number divides both x and y numbers completely or not. If divides completely store it in a variable.
Similar questions