Intern Software Interview Questions

17,735 intern software interview questions shared by candidates

Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five output “FizzBuzz”.
avatar

Software Developer Intern

Interviewed at Covalent (FL)

1.9
Jan 18, 2021

Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five output “FizzBuzz”.

Viewing 2761 - 2770 interview questions

Glassdoor has 17,735 interview questions and reports from Intern software interviews. Prepare for your interview. Get hired. Love your job.