#include
int main()
{
int price=0;
int bill=0;
printf("请输入金额:");
scanf("%d",&price);
printf("请输入票面:");
scanf("%d",&bill);
printf("应该找您:%d\n",bill -price) ;
return 0;
}
想问对于price 是否要初始化有无必要
我想直接用 int price,bill
后面不是通过scanf 对price进行赋值了么
为什么在最开始还要初始化