Create a method which will accept a positive integer input and return a value according to the following rules:

后端 未结 0 1126
天命终不由人
天命终不由人 2020-12-10 23:09

For multiples of 3 return “Fizz” For multiples of 5 return “Buzz” For multiples of both 3 and 5, return “FizzBuzz” For any other input (valid or otherwise) return a string r

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