当前位置:网站首页>Relevant calculation of sphere, etc
Relevant calculation of sphere, etc
2022-06-28 20:12:00 【Zaltana】
Please write a simple program , Enter the radius and height , Output circumference , Round area , Ball area , The volume of the ball , Cylinder volume .(PI=3.1415926)
Format
Input format : Input is double type
Output format : Branch output , Retain 2 Decimal place
Examples
Input :1.5 3
Output :9.42
7.07
28.27
14.14
21.21
#include<bits/stdc++.h>
using namespace std;
int main( )
{
double a,b;
scanf("%lf",&a);
scanf("%lf",&b);
printf("%0.2lf\n",3.1415926*2*a) ;
printf("%0.2lf\n",3.1415926*a*a) ;
printf("%0.2lf\n",3.1415926*a*a*4) ;
printf("%0.2lf\n",3.1415926*a*a*a*4/3) ;
printf("%0.2lf\n",3.1415926*a*a*b) ;
return 0;
}边栏推荐
- Design of secsha system
- oracle delete误删除表数据后如何恢复
- How to understand the usability of cloud native databases?
- Are you still paying for your thesis? Come and join me
- JSP to get the value in the session
- TcWind 模式設定
- odoo15 Module operations are not possible at this time, please try again later or contact your syste
- Analysis of all knowledge points of TCP protocol in network planning
- On the first anniversary of the data security law, which four major changes are coming?
- Concours de segmentation des images gastro - intestinales de kaggle Baseline
猜你喜欢

easypoi

2022茶艺师(中级)考试模拟100题及模拟考试

R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions

电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!...

2022年T电梯修理考试题库模拟考试平台操作

【Go语言刷题篇】Go从0到入门5:Map综合复习、条件语句、循环语句练习

How to obtain the coordinates of the aircraft passing through both ends of the radar

Leetcode week 299
![return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};](/img/6a/45a4494276deba72ef9833818229f5.png)
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};

How strong a mathematical foundation does deep learning need?
随机推荐
实型数运算
1002_ twenty million one hundred and eighty-one thousand and nineteen
Win 10 create a gin framework project
算力时代怎么「算」?「算网融合」先发优势很重要!
ArrayList of collection
Gaozelong, a digital economy expert: Yingke changed its name to yingcosmos. Will yuancosmos become the next growth engine of Yingke?
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};
Markdown mermaid种草(1)_ mermaid简介
bluecmsv1.6代码审计
Compression and decompression commands
R语言GLM广义线性模型:逻辑回归、泊松回归拟合小鼠临床试验数据(剂量和反应)示例和自测题
Wechat applet_ 8. View and logic
Class loading mechanism and object creation
2022焊工(初级)特种作业证考试题库及答案
Lecture 30 linear algebra Lecture 4 linear equations
1002_20181019
Rsync remote synchronization
csdn涨薪技术-Selenium自动化测试全栈总结
Ali open source (easyexcel)
H5 sunflower operation