C语言程序设计唐云廷第4章while循环程序设计(09_09_NIT_L)课件教学.pptVIP

  • 7
  • 0
  • 约9.22千字
  • 约 65页
  • 2017-01-01 发布于广东
  • 举报

C语言程序设计唐云廷第4章while循环程序设计(09_09_NIT_L)课件教学.ppt

PPT研究院 POWERPOINT ACADEMY * * 第 4 章 while 循环程序设计 结 束 上机练习 习题 #includestdio.h void main( ) { float pi, h, r, l, s, sq, vq, vz; pi=3.1415926; printf(input r, h: \n); scanf(%f, %f, r, h); l=2*pi*r; s=r*r*pi; sq=4*pi*r*r; vq=4.0/3.0*pi*r*r*r; vz=pi*r*r*h; printf(l=%6.2f\n, l); printf(s=%6.2f\n, s); printf(sq=%6.2f\n, sq); printf(vq=%6.2f\n, vq); printf(vz=%6.2f\n, vz); } c(5) :truncation from const double to float c(11) : conversion from double to float , possible loss of data 实验书 P23: 7题 8. #include stdi

文档评论(0)

1亿VIP精品文档

相关文档