Write a program to print square of input number if number is even otherwise print cube of that number
Answers
Answered by
0
Explanation:
C++ Program to accept a number and print its square if the number is even otherwise print its cube.Here I used if and else .
Similar questions