update
This commit is contained in:
parent
b59c0ba7ab
commit
21399519ab
BIN
Code/output/test
BIN
Code/output/test
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -5,15 +5,16 @@ int main()
|
|||||||
int x = 0,y = 0;
|
int x = 0,y = 0;
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
printf("请输入两个整数:\n");
|
||||||
scanf("%d %d", &x , &y);
|
scanf("%d %d", &x , &y);
|
||||||
|
|
||||||
if(x > y)
|
if(x > y)
|
||||||
printf("%d\n", x);
|
printf("%d更大\n", x);
|
||||||
else if(x < y)
|
else if(x < y)
|
||||||
printf("%d\n", y);
|
printf("%d更大\n", y);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("x = y\nexit\n");
|
printf("%d = %d\nexit\n",x,y);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user