Question
Write a script to input a number. If the number is even, print its square, otherwise print its cube.

Answer

"'A script to input a number. If the number is even, print its square, otherwise print its cube."'

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free