kotlin 查找id_Kotlin程序查找等边三角形的区域
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程序查找等边三角形的区域相关推荐
- 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 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 cylinder is a three-dimensional structure which has circular bases parallel to each ot ...
- 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 ...
最新文章
- AMD Cpu 性能分析
- 让所有中国人看了气氛的广东某学校捐款过程
- spring简单入门,入门案列的执行流程,图例
- mrsql查询第二高的成绩_mysql-查找用户的最高分数和相关的详细信息
- SQL进阶提升(疑惑篇order by)-学习sql server2005 step by step(十一)
- 基于.NetCore结合docker-compose实践Gitlab-CI/CD 排坑指南
- 查看系统表存储过程名称
- Windows-DHCP
- s3c2410_gpio_setpin()等系列函数
- SQL中的CASE WHEN THEN使用
- 正态分布下贝叶斯决策的引入
- 状态机详解(一段式、二段式、三段式)
- html内容转换中文乱码怎么办,HTML中文乱码怎么解决?
- WeAdmin连接资源,相关错误
- 第一章-第六题(帮人抢票,帮人选课这些软件是否合法 你怎么看?)--By梁旭晖...
- IOS视频编辑,视频裁剪,视频拼接,音频处理,视频处理
- oracle 取流水号
- 人力资源数据分析(包含数据来源文件)
- 图情论文笔记 | 图书情报档案机构如何助力乡村振兴?
- WhatsApp 批量解封提交工具
热门文章
- 可信计算3.0工程初步pdf_查校 | 英国大学工业工程与运筹学专业40个授课硕士+研究Mphil/Phd 项目汇总...
- php parse url ctf,【SSRF】如何绕过filter_var(), preg_match() 和 parse_url()
- 鸿蒙明年可以在手机上用吗,华为王成录:鸿蒙已满足在手机上使用,明年一二月份向部分用户开放...
- php 零宽断言,正则表达式之零宽断言实例详解【基于PHP】
- 贝壳如何docker安装openwrt_OpenWrt 中 使用 Docker 安装可道云出错。
- deepin系统转为windows_windows系统下安装深度系统deepin
- android studio 启动画面,Android Studio 利用Splash制作APP启动界面的方法
- Linux基础命令(1)
- mysql 5.5.18下载_MySQL5.7.18下载和安装过程图文详解
- jar包导出无法显示图片或者音乐_如何制作图片视频短片,配上音乐闪耀朋友圈!...