Computer Science, asked by vismayasunil2806, 4 months ago

Tenth Digit Odd or Even - Square or Cube
ID:6549
Solved By 3703 Users
Accept a positive integer X. If the tenth digit of X is even (0, 2, 4, 6 or 8) print the square of
X as the output. Else print the cube of X as the output.
Example Input/Output 1:
Input:
13
Output:
2197
Example Input/Output 2:
Input:
201
Output:
40401​

Answers

Answered by pravalikatadaka
0

Explanation:

Beard breath nighthawk

Similar questions