> 其他 >
填空题,括号内
#include
#include
#include
void main()
{ int x,y,t,max,min,i,n1,n2;
printf("Please enter two numbers:");
scanf("%d,%d",&x,&y);
if(x > y)
{t = x; x = y; y = t;}
n1=x; n2=y;
t = n2 % n1;
//
max = ();
min = x * y / max ;
printf("max is :%d\n",max);
printf("min is :%d\n",min);
}
人气:325 ℃ 时间:2020-05-20 11:12:26
解答
#include
#include
#include
int main()
{
\x05int x,y,t,max,min,i,n1,n2;
\x05printf("Please enter two numbers:");
\x05scanf("%d,%d",&x,&y);
\x05if(x > y)
\x05{t = x; x = y; y = t;}
\x05n1=x; n2=y;
\x05t = n2 % n1;
\x05//
\x05max = (n1);
\x05min = x * y / max ;
\x05printf("max is :%d\n",max);
\x05printf("min is :%d\n",min);
}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版