Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement: Write a function that takes a positive integer and calculates how many dots exist in a pentagonal shape around the center dot on the Nth iteration.
In the image below you can see the first iteration is only a single dot. On the second, there are 6 dots. On the third, there are 16 dots, and on the fourth there are 31 dots.
Return the number of dots that exist in the whole pentagon on the Nth iteration.
Before jumping into Pr first comment for assign.All Problem from Edabit. Link is mandatory to add
Problem statement: Write a function that takes a positive integer and calculates how many dots exist in a pentagonal shape around the center dot on the Nth iteration.
In the image below you can see the first iteration is only a single dot. On the second, there are 6 dots. On the third, there are 16 dots, and on the fourth there are 31 dots.
Return the number of dots that exist in the whole pentagon on the Nth iteration.
Problem Link: https://edabit.com/challenge/st8mDxreMcuWxuz8c
Before submitting a PR please Check some details.Check Edabit for problem task
This repository is vaild for HacktoberFest2020
Read before making PR - How to contribute on Github Good Luck,