declaration(声明)与definition(定义)
声明:给变量定义一个数据类型和变量名
定义:给变量赋初值
c语言变量命名规则:
Variable names in C are made up of letters (upper and lower case) and digits. The underscore character ("_") is also permitted. Names must not begin with a digit.
由下划线,数字和字母(区分大小写)组成,不能由数字开头。
round off(四舍五入)
#include<stdio.h>
#include<math.h>
int main()
{
printf("\n Result : %f" , ceil(1.44) );
printf("\n Result : %f" , ceil(1.66) );
printf("\n Result : %f" , floor(1.44) );
printf("\n Result : %f" , floor(1.66) );
return 0;
}
// Output:
// Result : 2.000000
// Result : 2.000000
// Result : 1.000000
// Result : 1.000000