摘要:
#includeint main(void){ double r,h,v; printf("Enter r,h:"); scanf("%lf%lf" ,&r,&h); if(r<0,h<0){ printf("sorry!your enter is wrong!\n"); } else{ v=3.1415926*r*r*h; printf("%.3f\n",v); } return 0;} 阅读全文
posted @ 2013-10-14 09:55
liruijia
阅读(87)
评论(0)
推荐(0)
摘要:
#includeint main(){ double r,s; printf("Enter r:"); scanf("%Lf",&r); if(r<=0) { printf("sorry!it is wrong!'); } else { s=3.1415923*r*r; printf("s=%.2f\n",s); } return 0;} 阅读全文
posted @ 2013-10-14 09:40
liruijia
阅读(118)
评论(0)
推荐(0)

浙公网安备 33010602011771号