1、进入VC++,正确新建一个C++文件。调整字体及其大小。在字体很小时,会影响工作学习的效率。
2、编写程序:#include <stdio.h>void main(拘七呷憎){ int r; float s; for(r=1;r<=15;r++) { s=3.14*r*r; if(s<30) continue; else if(s>100) break; printf("半径%d的圆的面积为%6.2f\n",r,s); }}

3、检查程序没有错误之后进行编译,连接:

4、如果有错误或者警告进行修改,直到完全正确:

5、最后,进行运行,验证结果:
