Ken H

Ken H

  • NA
  • 646
  • 361.2k

Least Common Multiple and Greatest Common Divisor in c

Jul 20 2013 11:34 PM
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)