Back

Please help me

Created 2 years ago
91 Views
3 Comments
SharmavTxohM
@SharmavTxohM
SharmavTxohM
@SharmavTxohMProfile is locked. Login

How to solve this codekata absolute beginner Q.4

You are provided with a number "N", Find the Nth term of the series: 1, 4, 9, 16, 25, 36, 49, 64, 81, .......

(Print "Error" if N = negative value and 0 if N = 0).

Input Description:
An integer N is provided to you as the input.

Output Description:
Find the Nth term in the provided series.

Sample Input :
18
Sample Output :
324
Comments (3)
Please login to comment.