#include <stdio.h>
int main(void)
{
int a,b;
printf("please input two number:\n");
scanf("%d %d",&a,&b);
switch(a,b)
case a<b:
printf("a<b\n");
break;
case a>b:
printf("a>b\n");
break;
case a=b:
printf("a=b\n");
break;
}
我不知道哪一步错了,还是不能用switch比较两个变量的大小,还请大佬指出来,谢谢!