Square Root and Cube Root (Challenge)

# Introduction In this challenge, we will write a program that takes an integer as input. If the input is odd, the program will calculate its square root rounded to two decimal places. If the input is even, the program will calculate its cube root rounded to two decimal places. To solve the challenge, we can use branching statements like if-else to determine whether the input number is odd or even.

|60 : 00

Click the virtual machine below to start practicing