Problem 55815. Fizz
Dado um número inteiro n, retorne 'fizz' se esse valor for multiplo de 3, ou retorne o valor caso contrario.
Fizz(3) = 'fizz';
Fizz(6) = 'fizz';
fizz(7) = 7;
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers51
Suggested Problems
-
Return a list sorted by number of occurrences
2888 Solvers
-
Longest run of consecutive numbers
6433 Solvers
-
Sum of first n positive integers
620 Solvers
-
Sum the squares of numbers from 1 to n
257 Solvers
-
257 Solvers
More from this Author20
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!