kotlin 查找id_Kotlin程序查找圆柱体区域
kotlin 查找id
A cylinder is a three-dimensional structure which has circular bases parallel to each other.
圆柱是具有彼此平行的圆形底的三维结构。
Formula to find area of a cylinder: 2*PI*(radius+height)
查找圆柱体面积的公式:2 * PI *(半径+高度)
Give radius and height, we have to find area of a cylinder.
给定半径和高度,我们必须找到圆柱体的面积。
Example:
例:
Input:
Radius = 5
Height = 7
Output:
Surface Area of Cylinder is :75.39822368615503
查找Kotlin圆柱体面积的程序 (Program to find area of a cylinder in Kotlin)
package com.includehelp
import java.util.*
//Main Function , Entry point of Program
fun main(args: Array<String>) {
//Input Stream
val scanner = Scanner(System.`in`)
//Input Radius
print("Enter Radius of Cylinder : ")
val radius = scanner.nextDouble()
//Input Height
print("Enter Height of Cylinder : ")
val height = scanner.nextDouble()
//Cylinder Surface Area
val areaCylinder = 2*Math.PI*(radius+height)
//Print Area
println("Surface Area of Cylinder is :$areaCylinder")
}
Output
输出量
Run 1:
Enter Radius of Cylinder : 5
Enter Height of Cylinder : 7
Surface Area of Cylinder is :75.39822368615503
---
Run 2:
Enter Radius of Cylinder : 29
Enter Height of Cylinder : 4
Surface Area of Cylinder is :207.34511513692635
翻译自: https://www.includehelp.com/kotlin/find-area-of-a-cylinder.aspx
kotlin 查找id
kotlin 查找id_Kotlin程序查找圆柱体区域相关推荐
- kotlin 查找id_Kotlin程序查找立方体区域
kotlin 查找id A cube has 6 square faces, if edges length is side. Then the area of each square is side ...
- kotlin 查找id_Kotlin程序查找等边三角形的区域
kotlin 查找id Formula to find area of Equilateral Triangle: area = ( 1.73 × side × side)/4 查找等边三角形面积的公 ...
- kotlin 查找id_Kotlin程序查找平行四边形的区域
kotlin 查找id Formula to find area of Parallelogram: area = base*height 查找平行四边形面积的公式: area = base * he ...
- kotlin 查找id_Kotlin程序查找Square区域
kotlin 查找id Formula to find area of Square: area = side*side 查找Square面积的公式: area = side * side Given ...
- kotlin 查找id_Kotlin程序查找矩阵的转置
kotlin 查找id A transpose of a matrix is simply a flipped version of the original matrix. We can trans ...
- kotlin 查找id_Kotlin程序查找给定范围内的素数
kotlin 查找id A prime number is a natural number that is greater than 1 and cannot be formed by multip ...
- kotlin 查找id_Kotlin程序查找Sphere的体积
kotlin 查找id Formula to find volume of Sphere: volume =(4/3)*PI*r^3 查找球体体积的公式: volume =(4/3)* PI * r ...
- kotlin 查找id_Kotlin程序在矩阵中查找偶数和奇数的频率
kotlin 查找id Given a matrix, we have to find frequencies of even and odd numbers. 给定一个矩阵,我们必须找到偶数和奇数的 ...
- 微信小程序 查找兄弟节点_使用C ++程序在链接列表中查找节点
微信小程序 查找兄弟节点 Given a linked list and an integer N, you need to find and return index where N is pres ...
最新文章
- COALESCE在SQL拼接中的大用途
- linux centos 查找命令 属于哪个安装包 所属软件包
- gpxclear寄存器写0和写1_画图,搭积木,写对象 [TF 笔记 0]
- 微型计算机系统配置实训报告,微机配置方案设计实训报告2018
- MySQL Binlog Mixed模式记录成Row格式
- 拉屎能赚钱?在马桶上月入过万?原来卫生间里还有这么多隐藏福利,超模君都惊了……
- Request的getParameter和getAttribute方法的差别
- android用java写文本框_Android 使用TextView实现验证码输入框
- 比特币价格跌破3万美元登上彭博社头版
- 【数据结构】堆、堆排序笔记
- java中的scanner用法
- 简单易用的网络调试工具——NetAssist
- python-万年历
- 读书笔记1——《用户故事与敏捷方法》
- r语言如何计算t分布临界值_第十二讲 R-配对样本t检验
- 正大国际期货:外盘黄金期货怎么做,需要注意什么?
- Codeforces 1155F Delivery Oligopoly dp(看题解)
- 服务器跑项目,如何使用远程服务器跑项目
- JavaScript 基础知识 - 入门篇(二)
- 2019投资总结,5月入市的小账户,收益25%