Question
Write a script to input a number. If the number is even, print its square, otherwise print its cube.
Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.
For example:If the list PLACES contains [''DELHI'', ''LONDON'', ''PARIS'', ''NEW YORK'', ''DUBAI'']The following should get displayedLONDONNEW YORK
[Filename: ch4/ch-4_Q10]
For example,If the SCORES contain [200,456,300,100,234,678]The sum should be displayed as 600.