中国大学MOOC_优质在线课程学习平台 https://www.icourse163.org/
C语言程序设计精髓_哈尔滨工业大学_中国大学MOOC(慕课) https://www.icourse163.org/course/HIT-69005
1、codeblocks安装并新建项目







2、变量的使用
#include <stdio.h>
int main()
{
int price,change;
printf("请输入金额(元):");
scanf("%d",&price);
change=100-price;
printf("找您%d元\n",change);
return 0;
}
3、常量的使用
#include <stdio.h>
int main()
{
int price=0;
int change=0;
const int AMOUNT=100;
printf("请输入金额(元):");
scanf("%d",&price);
change=AMOUNT-price;
printf("找您%d元\n",change);
return 0;
}