SlideShare
5.0 of 5 1 reviews
www.slideshare.net San Francisco, CA

SlideShare Software Developer Interview Question

I interviewed in San Francisco, CA and was asked:
"Program the game FizzBuzz for numbers 1-100 in any programming language."
Add Tags [?]
Answer Flag Question

Part of a Software Developer Interview Review - one of 8 SlideShare Interview Reviews

Answers & Comments

0
of 1
vote
Answer to this question is here
http://www.algopill.com/2011/03/13/fizzbuzz/
- AlgoPill on Mar 13, 2011 Flag Response
0
of 0
votes
for(int i=0;i<100;i++){
    if(i%15==0){
        System.out.println("fizzbuzz");
    }else if(i%3==0){
        System.out.println("fizz");
    }else if(i%5==0){
        System.out.println("buzz");
    }else{
        System.out.println(i);
    }
}
- Anonymous on Jun 16, 2013 Flag Response
0
of 0
votes
def fizzBuzz():
  for val in range(1, 101):
    if val % 15 == 0:
      print "FizzBuzz"
    elif val % 3 == 0:
      print "Fizz"
    elif val % 5 == 0:
      print "Buzz"
    else:
      print val
- Anonymous on Oct 7, 2013 Flag Response

To comment on this question, Sign In with Facebook or Sign Up


Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at SlideShare interview questions and advice. All interview reviews posted anonymously by SlideShare employees and interview candidates.