about | help | code help+videos | done | prefs
CodingBat code practice

fizzbuzz-code > fizzString2
prev  |  next  |  chance

 Given an int n, return the string form of the number followed by "!". So the int 6 yields "6!". Except if the number is divisible by 3 use "Fizz" instead of the number, and if the number is divisible by 5 use "Buzz", and if divisible by both 3 and 5, use "FizzBuzz". Note: the % "mod" operator computes the remainder after division, so 23 % 10 yields 3. What will the remainder be when one number divides evenly into another? (See also: FizzBuzz Code and Introduction to Mod)fizzString2(1) → "1!"fizzString2(2) → "2!"fizzString2(3) → "Fizz!"...Save, Compile, Run (ctrl-enter)public String fizzString2(int n) { } Editor font size %:75100125150Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph

Misc Code Practice

Difficulty: 135.1

Copyright Nick Parlante 2017 - privacy