int对应%d;
long对应%ld;
float对应%f;
double对应%lf;
输入输出需要引用头文件stdio.h;
bool类型需要引用头文件stdbool.h;
数学公式需要引用头文件math.h;