C语言程序纠错
1个回答
展开全部
#include<stdio.h>
int main()
{
int i1,i2,max;
int *p1=&i1,*p2=&i2;
printf("Please input two integers:");
scanf("%d,%d",p1,p2);
if(*p1>*p2)
max=*p1;
else
max=*p2;
printf("The two numbers is %d,%d\n",i1,i2);
printf("The larger number of then is %d\n",max);
return 0;
}
int main()
{
int i1,i2,max;
int *p1=&i1,*p2=&i2;
printf("Please input two integers:");
scanf("%d,%d",p1,p2);
if(*p1>*p2)
max=*p1;
else
max=*p2;
printf("The two numbers is %d,%d\n",i1,i2);
printf("The larger number of then is %d\n",max);
return 0;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询