C_01 hello world.pptVIP

  • 13
  • 0
  • 约4.51千字
  • 约 36页
  • 2016-11-06 发布于江苏
  • 举报
C_01 hello world.ppt

上机实践 3、利用前面例子中的min函数,从键盘依次输入3(或4)个整数,然后在屏幕上打印出3(或4)个整型数字中的最小值 4、仿照上题的代码,写一个Max函数,实现返回两个整型中的最大值的函数,然后从键盘依次输入3(或4)个整数,然后在屏幕上打印出3(或4)个整型数字中的最大值 课后作业1: 预习实例3求圆的周长和面积 #includestdio.h int main() { double radius; double area; double perimtr; radius = 20; // Step 1: Read in radius perimtr = 2.0 * 3.14159 * radius ; area = radius * radius * 3.14159; // Step 2: Compute area printf( The perimeter is %lf\n , perimtr ) ; printf( The area is %lf\n, area) ; return 0; } 课后作业2 阅读教材11.7 格式化输入输出 阅读第二章 dialog1 dialog2 dialog3 dialog4 学习动物精神 11、机智

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档