Shape

Report a typo

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!

Sample Input 1:

1

Sample Output 1:

You have chosen a square
Write a program in Kotlin
fun main(args: Array<String>) {
// write your code here
}
___

Create a free account to access the full topic