摘要:
#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;} 阅读全文
摘要:
#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;} 阅读全文