beyondgrader.com Logo
DemoBrowseAboutTeamLogin

FozzBuzz

Geoffrey Challen // 2021.5.0

Implement a public class FozzBuzz providing a public class method fozzbuzz. fozzbuzz takes no arguments. It prints the numbers from 1 to 124. But for multiples of two print "Fozz" instead of the number and for the multiples of three print "Buzz". For numbers which are multiples of both two and three print "FozzBuzz".