Swift Generate Odd Array Isse

后端 未结 0 1999
粉色の甜心
粉色の甜心 2021-02-01 09:38

We given a task to create a swift function to generate and return an array of an odd number for a given number of element.

If element is 7 then output will be [1,3,5,7,9]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题