大家帮我运行或者看看,这个程序有什么问题么?
要求 输出三个数种最大的..#include "stdio.h"
int max(int x,int y,int z)
{
int w,p;
if (y>x) w=y;
else w=x;
if (w>z) p=w;
else p=z;
return (p);
}
main()
{
int num1,num2,num3,m;
printf("Input the first number:");
scanf("%d",num1);
printf("Input the second number:");
scanf("%d",num2);
printf("Input the third number:");
scanf("%d",num3);
m=max(num1,num2,num3);
printf("max=%d\n",m);
}