当前位置:网站首页>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;
}边栏推荐
- 2788.Cifera
- Rsync remote synchronization
- TcWind 模式设定
- C#应用程序界面开发基础——窗体控制
- 管道 | 与重定向 >
- 修复一次flutter 无法选中模拟器
- UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation
- Day88. qiniu cloud: upload house source pictures and user avatars
- csdn涨薪技术-Selenium自动化测试全栈总结
- 1. 整合 Servlet
猜你喜欢

Win 10 create a gin framework project

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

2022 P cylinder filling test exercises and online simulation test

Analysis of all knowledge points of TCP protocol in network planning

C # connect to the database to complete the operation of adding, deleting, modifying and querying

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

ArrayList of collection

5G NR MBS架构介绍

Rsync remote synchronization

Shell reads the value of the JSON file
随机推荐
wc命令的使用
Lecture 30 linear algebra Lecture 4 linear equations
jsp中获取session中的值
算力时代怎么「算」?「算网融合」先发优势很重要!
grep文本搜索工具
Bluecmsv1.6 code audit
严重性 代码 说明 项目 文件 行 禁止显示状态 错误 C1047 对象或库文件“.lib”是使用与其他对象(如“x64\Release\main.obj”)不同的
How to "calculate" in the age of computing power? The first mover advantage of "convergence of computing and networking" is very important!
Server configuration estimation of core IOT Bluetooth AOA positioning system
ComparisonChain-文件名排序
Class loading mechanism and object creation
请允许当下国内ToB的「不完美」
The severity code indicates that the project file line prohibits the display of status errors. C1047 object or library file ".Lib" is different from other objects (such as "x64\release\main.obj")
秒杀系统设计
Software supply chain security risk guide for enterprise digitalization and it executives
1. 整合 Servlet
【324. 摆动排序 II】
Day88.七牛云: 房源图片、用户头像上传
522. 最长特殊序列 II(贪心&双指针)
JSP to get the value in the session