正在加载图片...
例2.1根据圆的半径r,计算圆面积s 已知求圆面积的公式为:s=r2 源程序为: /求圆面积* include< stdio. h>/命令行 main0/主函数首部 {intr;/定义变量r,说明为整型*/ float s 定义变量s,说明为单精度型* 点专此处结束放殃 4合例2.1 根据圆的半径r,计算圆面积s。 已知求圆面积的公式为:s=r 2 源程序为: /* 求圆面积 */ # include <stdio.h> /* 命令行 */ main () /* 主函数首部 */ { int r ; /* 定义变量r , 说明为整型 */ float s ; /* 定义变量s, 说明为单精度型 */
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有