4
Answers

Least Common Multiple and Greatest Common Divisor in c

Ask a question
Ken H

Ken H

11y
1.6k
1
hi,
  input any two positive integers  how to seek their Least Common Multiple and Greatest Common Divisor in c.


thank.

#include<stdio>
void main(void)
{
    int x,y;
    printf("input any two positive integers:");
    scanf("%d %d",&x,&y);
   
    /*
      ...

   */
}

Answers (4)