Write a program that reads the shape number: 1 – a square, 2 – a circle, 3 – a triangle, 4 – a rhombus, and prints the text You have chosen a square (or circle, or triangle, or rhombus, depending on the number). If the input is a number that doesn't correspond to any of the listed shapes, output There is no such shape!
When expression
Shape
Report a typo
Sample Input 1:
1Sample Output 1:
You have chosen a squareWrite a program in Kotlin
fun main(args: Array<String>) {
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.