Computer Science, asked by Kartik74549063, 4 months ago

Write a program to print square of input number if number is even otherwise print cube of that number

Answers

Answered by Anonymous
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