View Code of Problem 59

#include"stdio.h"
int main(){
int m,n,temp,c,l;
  scanf("%d%d",&m,&n);
  c=m*n;
  while(n!=0){
  	l=m%n;
    	m=n;
    	n=l;
  }
  printf("%d %d",c/m,m);
return 0;
}

Double click to view unformatted code.


Back to problem 59