printf里面那个逗号你写成中文的了,改成英文逗号就行了。
scanf("%d",&prince); 注意双引号
#include<stdio.h> int main() { int price=0,change; printf("请输入金额(元):"); scanf("%d",&price); change=100-price; printf("找%d元。\n",change); return 0; }
你看下区别,就知道哪里有问题了