GUVI
Back

Java script problem

Created 2 years ago
899 Views
4 Comments
SimtaangaranKamalesh
@SimtaangaranKamalesh
SimtaangaranKamalesh
@SimtaangaranKamaleshProfile is locked. Login

I have no Idea about this problem,help me to solve the problem...

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 (4)
Please login to comment.
 
Powered by habitate.io Habitate