OSzhihuan
来源:互联网 发布:centos安装软件 编辑:程序博客网 时间:2024/06/07 10:52
蟠桃记
/* * ===================================================================================== * * Filename: tiji.c * * Description: * * Version: 1.0 * Created: 2017年02月24日 09时26分13秒 * Revision: none * Compiler: gcc * * Author: YOUR NAME (), * Organization: * * ===================================================================================== */#include <stdlib.h>#include<stdio.h>#include<math.h>#define PI 3.1415927 int main(){ float r; double res; while(scanf("%f",&r)!=EOF) { res=float(4)/3*PI*r*r*r; printf("%.3f\n",res); } return 0;}