输入两个正数m和n,求其最大公约数和最小公倍数.

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/03 04:51:59

输入两个正数m和n,求其最大公约数和最小公倍数.

#include "stdio.h"
#include "conio.h"
main()
{
int a,b,num1,num2,temp;
printf("please input two numbers:\n");
scanf("%d,%d",&num1,&num2);/*输入的两个数之间用“,”号分隔*/
if(num1