LogiQuest
Back to Control Instructions
14

What is the output of the following program?

int x = 15;
if (x % 3 == 0 && x % 5 == 0) Console.Write("FizzBuzz");
else if (x % 3 == 0) Console.Write("Fizz");
else Console.Write(x);
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.