33,321
社区成员




#include <stdio.h>
int main()
{
int amount = 100;//-------nt改为int---------
int price = 0;
printf("please write amount:\n");//------print改为printf-----------
scanf("%d", &price);
printf("please write the price of the ticket:\n");//------print改为printf-----------
scanf("%d", &amount);
int change = amount - price;
printf("give you %d yuan\n", change);//------print改为printf-----------
return 0;
}//---------添加 } -------------------------