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程序查找圆柱体区域相关推荐

  1. kotlin 查找id_Kotlin程序查找立方体区域

    kotlin 查找id A cube has 6 square faces, if edges length is side. Then the area of each square is side ...

  2. kotlin 查找id_Kotlin程序查找等边三角形的区域

    kotlin 查找id Formula to find area of Equilateral Triangle: area = ( 1.73 × side × side)/4 查找等边三角形面积的公 ...

  3. kotlin 查找id_Kotlin程序查找平行四边形的区域

    kotlin 查找id Formula to find area of Parallelogram: area = base*height 查找平行四边形面积的公式: area = base * he ...

  4. kotlin 查找id_Kotlin程序查找Square区域

    kotlin 查找id Formula to find area of Square: area = side*side 查找Square面积的公式: area = side * side Given ...

  5. kotlin 查找id_Kotlin程序查找矩阵的转置

    kotlin 查找id A transpose of a matrix is simply a flipped version of the original matrix. We can trans ...

  6. kotlin 查找id_Kotlin程序查找给定范围内的素数

    kotlin 查找id A prime number is a natural number that is greater than 1 and cannot be formed by multip ...

  7. kotlin 查找id_Kotlin程序查找Sphere的体积

    kotlin 查找id Formula to find volume of Sphere: volume =(4/3)*PI*r^3 查找球体体积的公式: volume =(4/3)* PI * r ...

  8. kotlin 查找id_Kotlin程序在矩阵中查找偶数和奇数的频率

    kotlin 查找id Given a matrix, we have to find frequencies of even and odd numbers. 给定一个矩阵,我们必须找到偶数和奇数的 ...

  9. 微信小程序 查找兄弟节点_使用C ++程序在链接列表中查找节点

    微信小程序 查找兄弟节点 Given a linked list and an integer N, you need to find and return index where N is pres ...

最新文章

  1. COALESCE在SQL拼接中的大用途
  2. linux centos 查找命令 属于哪个安装包 所属软件包
  3. gpxclear寄存器写0和写1_画图,搭积木,写对象 [TF 笔记 0]
  4. 微型计算机系统配置实训报告,微机配置方案设计实训报告2018
  5. MySQL Binlog Mixed模式记录成Row格式
  6. 拉屎能赚钱?在马桶上月入过万?原来卫生间里还有这么多隐藏福利,超模君都惊了……
  7. Request的getParameter和getAttribute方法的差别
  8. android用java写文本框_Android 使用TextView实现验证码输入框
  9. 比特币价格跌破3万美元登上彭博社头版
  10. 【数据结构】堆、堆排序笔记
  11. java中的scanner用法
  12. 简单易用的网络调试工具——NetAssist
  13. python-万年历
  14. 读书笔记1——《用户故事与敏捷方法》
  15. r语言如何计算t分布临界值_第十二讲 R-配对样本t检验
  16. 正大国际期货:外盘黄金期货怎么做,需要注意什么?
  17. Codeforces 1155F Delivery Oligopoly dp(看题解)
  18. 服务器跑项目,如何使用远程服务器跑项目
  19. JavaScript 基础知识 - 入门篇(二)
  20. 2019投资总结,5月入市的小账户,收益25%

热门文章

  1. 1495: 蛇行矩阵
  2. 网络框架 Retrofit(三)
  3. 构建安全网络 比格云全系云产品30天内5折购
  4. Launch Instruments
  5. 李洪强iOS开发之FMDB线程安全的用法
  6. 关于node.js和npm 和nvm_byKL
  7. php5.3 延迟静态绑定 static关键字
  8. UIScrollView的简单使用
  9. Windows Phone 7 LongListSelector控件实现分类列表和字母索引
  10. 【博客话题】坚持的背影--记我的入门老师