首页 > 其他 > 详细

千里之行始于足下!这是编写的第一个程序:质量计算

时间:2021-04-07 15:08:40      阅读:20      评论:0      收藏:0      [点我收藏+]

// 质量计算.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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!