1、新建一个项目,名称为:计算长方形面积,如图所示:
3、添加头文件(stdio.h和stdlib.h),以及main() 函数 和 system() 函数,如图所示:
5、分别给变量a和变量b赋值,代码:a = 2.5; b = 3.0;