#include<stdio.h>
#include<string.h>
int main()
{
int n1,n2;
printf("请输入两个要比较的数值:");
scanf("%d,%d", &n1, &n2);
if (n1 > n2) printf("%d\n", n1);
else printf("%d\n", n2);
return 0;
}
2023-12-26 13:02:39
#include<stdio.h>
#include<string.h>
int main()
{
int n1,n2;
printf("请输入两个要比较的数值:");
scanf("%d,%d", &n1, &n2);
if (n1 > n2) printf("%d\n", n1);
else printf("%d\n", n2);
return 0;
}