// 质量计算.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
double r=10,p=34,v,w;
v=4.0/3.0/1000*3.1415926*r*r*r;
w=p*v;
printf("weight is %lf\n",w);
return 0;
}
原文:https://www.cnblogs.com/dyf2019/p/14627369.html