kotlin 查找id_Kotlin程序查找Square区域
kotlin 查找id
Formula to find area of Square: area = side*side
查找Square面积的公式: area = side * side
Given the value of side, we have to find the area of Square.
给定side的值,我们必须找到Square的面积。
Example:
例:
Input:
side = 6
Output:
area = 36.0
计划在Kotlin查找Square区域 (Program to find area of Square 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 Side of Square
print("Enter Side of Square : ")
val side = scanner.nextDouble()
//Calculate Area of square
val squareArea = side*side;
//Print Area
println("Area of Square is : $squareArea")
}
Output
输出量
Run 1:
Enter Side of Square : 6
Area of Square is : 36.0
---
Run 2:
Enter Side of Square : 4.5
Area of Square is : 20.25
翻译自: https://www.includehelp.com/kotlin/find-area-of-square.aspx
kotlin 查找id
kotlin 查找id_Kotlin程序查找Square区域相关推荐
- 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程序查找圆柱体区域
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 ...
最新文章
- matlab实现图像的高斯滤波
- HTML5 服务器推送事件(Server-sent Events)实战开发
- (操作系统实验)第四次说明
- 分布式事务理论-二阶段提交(Two-phase Commit)
- 估值150亿,账上还有近10亿现金,却减员500人,这家公司CEO的说法你认同吗?...
- 一幅图看懂prototype与[[Prototype]]
- 抵御风险——漫谈运维核心价值和方法论
- C++ 单链表基本操作
- VC运行库修复安装一键安装
- Python:jieba库的介绍与使用
- 二维码解码器(zbar-0.10+ opencv-2.4.10+VS2010)完整实例含源代码
- html设计方案,网页设计经典方案
- 安全邮箱怎么注册?邮箱地址是什么?怎么写?快速了解tomvip邮箱
- 电脑的任务栏只显示一条杠,没有图标怎么解决,看这里!!!
- Gerrit升级和升级后的check(包括gerrit mirror 服务器上的升级)
- LAN 局域网通讯软件 中期报告
- PNPOLY - Point Inclusion in Polygon W. Randolph Franklin
- 康迈斯多通路基因抗衰老之九:PQQ PRO线粒体能量
- Diskeeper 2010 EnterpriseServer
- ShockwaveFlash 详解
热门文章
- 前端开发攻城狮必须知道的开发环境和插件
- php与mysql连接程序_PHP与Mysql连接
- 深入理解DOM节点关系
- TJOI2018Party
- 浅谈Windows下SVN在Android Studio中的配置、基本使用及解除关联
- 代码分享h5-sessionStorage,提示app下载代码块
- Linux内核的启动过程分析
- 【Linux学习篇】This virtual machine is configured for 64-bit guest operating systems.……
- codeforces 261 D
- boa + ajax + cgi ajax请求cgi