Assalamu Alaikum. Hope you all are well by the grace of Almighty ALLAH. Today we learn how to find out the nth value from a cub series. Take a look at the problem.
Problem: Write a program which will calculate the value of nth position of this following series.
1 + 3 + 9 + 27 + 81 + .................
Sample Input: 4
Sample Output: 27
Solution:
Problem: Write a program which will calculate the value of nth position of this following series.
1 + 3 + 9 + 27 + 81 + .................
Sample Input: 4
Sample Output: 27
Solution:
Thank you all..:)
0 comments:
Post a Comment