Home > Mobile >  Finding the closest pentagonal number,
Finding the closest pentagonal number,

Time:11-26

So, I need to create a function in R that takes as input an integer, S ≥ 1 and returns as output the pentagonal number which is closest to S.The output of my function should be the pentagonal number

  • Related