1.辗转相除法:
2.
#include
int main(){
//四则运算
printf("%dn", 43+23);
printf("43x23=%dn", 43*23);
int i; //标识符:字母、数字、下划线_ 但不能由数字开头(保留字不能作为标识符)
printf("输入:");
scanf("%d", &i); //读取 &
printf("输出:%dn", i);
}
3.
变量(variable):能变化的数;
常量(constant):固定不变的量,直接写在程序里则叫做直接量(literal)。
4.
将AMOUNT重新赋值提示错误:
5.
//plus
int a,b;
printf("Please input two integer numbers:n");
scanf("%d %d", &a, &b);
printf("%d + %d = %dn", a, b, a + b);



