正在加载图片...
第5章第5节 程序 # include” math. h” main 0 floata,y, z,p; printf“ inputx,y=“); scanf(“%of,%r”,&x,&y); p=sqrt(x*x+y*y); if(p>=50)z0.0 else z10 0-2* print(“x,y,z%10.3,%10.3f,%10.3fn”,x,yz)第5章 第5节 程序: #include”math.h” main() {float x,y,z,p; printf(“input x,y=“); scanf(“%f,%f”,&x,&y); p=sqrt(x*x+y*y); if (p>=5.0) z=0.0 else z=10.0-2*p printf(“x,y,z=%10.3f,%10.3f,%10.3f\n”,x,y,z); }
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有