0

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

An integer N is provided to you as the input.

1st Jul 2022, 4:03 PM
chandrakanth karamthod
chandrakanth karamthod - avatar
9 Answers
+ 2
I can help you to write it yourself: Follow the steps that I suggest and show your code. Then I will check on your code and tell you how to improve it
1st Jul 2022, 4:21 PM
Lisa
Lisa - avatar
+ 1
What is your question? Please tag the relevant programming language!
1st Jul 2022, 4:10 PM
Lisa
Lisa - avatar
+ 1
You can use a for-loop: On each iteration, square the current number.
1st Jul 2022, 4:17 PM
Lisa
Lisa - avatar
+ 1
chandrakanth karamthod Please always post your attempts with your question so we can find where you are getting problem and guide you about to solve problem.
1st Jul 2022, 5:14 PM
AĶ¢J
AĶ¢J - avatar
0
Ok
1st Jul 2022, 4:12 PM
chandrakanth karamthod
chandrakanth karamthod - avatar
1st Jul 2022, 4:12 PM
chandrakanth karamthod
chandrakanth karamthod - avatar
0
Tq
1st Jul 2022, 4:22 PM
chandrakanth karamthod
chandrakanth karamthod - avatar
0
Somerhing like; Number=serie[N]
2nd Jul 2022, 6:09 AM
Cristian Baeza Jimenez
Cristian Baeza Jimenez - avatar
- 2
Can u pls write code
1st Jul 2022, 4:19 PM
chandrakanth karamthod
chandrakanth karamthod - avatar