0

Cube or square?

Cube or square?is a new math game that has taken the school by storm! It's mechanic are fairly simple.if they show you negative number,you type in the cube of that number,if it's positive,you type in the square of that number,and if it's 0,then you type in there word "zero". Enough talk,go out there and have some fun! Input A single line containing an integer. 4 Output A single line containing an integer or the word "zero".

14th Nov 2022, 2:12 AM
John Carlo Ambos
John Carlo Ambos - avatar
1 Answer
+ 2
1. Pls move the task description into the question description. When in an answer, it tends to get lost if you get many. 2. Pls include in your question a tag with the language name. 3. Pls show your attempt in Code Playground by adding a link to it in the question description (use "+" button). 4. Pls explain your difficulties - also in the question description.
14th Nov 2022, 3:34 AM
Emerson Prado
Emerson Prado - avatar