Square and Cube

Easy
#math #arithmetic

Input: `n` (int). Return: List `[square, cube]`.

Example

Input: 2
Output: [4, 8]
Need a hint?
  • Square is n*n, Cube is n*n*n
Run your code to see output