kotlin 查找id

Formula to find area of Equilateral Triangle: area = ( 1.73 × side × side)/4

查找等边三角形面积的公式: 面积=(1.73×边×边)/ 4

Given the value of side, we have to find the area of Equilateral Triangle.

给定边的值,我们必须找到等边三角形的面积。

Example:

例:

    Input:
side = 7
Output:
area = 21.1925

查找Kotlin等边三角形区域的程序 (Program to find area of Equilateral Triangle in Kotlin)

package com.includehelp
import java.util.*
import kotlin.math.pow
//Main Function , Entry point of Program
fun main(args: Array<String>) {
//Input Stream
val scanner = Scanner(System.`in`)
//Input Side of Equilateral Triangle
print("Enter Side of Equilateral Triangle : ")
val side = scanner.nextDouble()
//Calculate Area of Equilateral Triangle
val areaEquilateralTriangle = (1.73*side.pow(2))/4
//Print Area
println("Area of Equilateral Triangle on Side($side) is :$areaEquilateralTriangle")
}

Output

输出量

Run 1:
Enter Side of Equilateral Triangle : 7
Area of Equilateral Triangle on Side(7.0) is :21.1925
---
Run 2:
Enter Side of Equilateral Triangle : 21
Area of Equilateral Triangle on Side(21.0) is :190.7325

翻译自: https://www.includehelp.com/kotlin/find-area-of-equilateral-triangle.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 Parallelogram: area = base*height 查找平行四边形面积的公式: area = base * he ...

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

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

  4. kotlin 查找id_Kotlin程序查找圆柱体区域

    kotlin 查找id A cylinder is a three-dimensional structure which has circular bases parallel to each ot ...

  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. AMD Cpu 性能分析
  2. 让所有中国人看了气氛的广东某学校捐款过程
  3. spring简单入门,入门案列的执行流程,图例
  4. mrsql查询第二高的成绩_mysql-查找用户的最高分数和相关的详细信息
  5. SQL进阶提升(疑惑篇order by)-学习sql server2005 step by step(十一)
  6. 基于.NetCore结合docker-compose实践Gitlab-CI/CD 排坑指南
  7. 查看系统表存储过程名称
  8. Windows-DHCP
  9. s3c2410_gpio_setpin()等系列函数
  10. SQL中的CASE WHEN THEN使用
  11. 正态分布下贝叶斯决策的引入
  12. 状态机详解(一段式、二段式、三段式)
  13. html内容转换中文乱码怎么办,HTML中文乱码怎么解决?
  14. WeAdmin连接资源,相关错误
  15. 第一章-第六题(帮人抢票,帮人选课这些软件是否合法 你怎么看?)--By梁旭晖...
  16. IOS视频编辑,视频裁剪,视频拼接,音频处理,视频处理
  17. oracle 取流水号
  18. 人力资源数据分析(包含数据来源文件)
  19. 图情论文笔记 | 图书情报档案机构如何助力乡村振兴?
  20. WhatsApp 批量解封提交工具

热门文章

  1. 可信计算3.0工程初步pdf_查校 | 英国大学工业工程与运筹学专业40个授课硕士+研究Mphil/Phd 项目汇总...
  2. php parse url ctf,【SSRF】如何绕过filter_var(), preg_match() 和 parse_url()
  3. 鸿蒙明年可以在手机上用吗,华为王成录:鸿蒙已满足在手机上使用,明年一二月份向部分用户开放...
  4. php 零宽断言,正则表达式之零宽断言实例详解【基于PHP】
  5. 贝壳如何docker安装openwrt_OpenWrt 中 使用 Docker 安装可道云出错。
  6. deepin系统转为windows_windows系统下安装深度系统deepin
  7. android studio 启动画面,Android Studio 利用Splash制作APP启动界面的方法
  8. Linux基础命令(1)
  9. mysql 5.5.18下载_MySQL5.7.18下载和安装过程图文详解
  10. jar包导出无法显示图片或者音乐_如何制作图片视频短片,配上音乐闪耀朋友圈!...