用的是vs2017,
#include<stdio.h>
main()
{
double x, y, max;
x = 7.27, y = 13.13;
if (x >= y) max = x;
else max = y;
printf("%d\n", max);
system("pause");
}
大佬刚才的错误我找到了,谢谢您。
可是这段程序该怎么办?
#include<stdio.h>
int max(int a, int b)
{
if (a >= b) max = a;
else max = b;
return max;
}
main()
{
int x, y;
x = 7, y = 13;
printf("%d\n", max)
system("pause");
}
谢谢大佬!