This commit is contained in:
zibright 2025-05-08 20:00:26 +08:00
parent b59c0ba7ab
commit 21399519ab
5 changed files with 4 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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;
} }
} }