Computer Science, asked by apinemahesh, 1 month ago

public class IfExample { public static void Main(string[] args) { int num = 11; if (num % 2 = 0) { Console.WriteLine("It is even number"); } else { Console.WriteLine("It is odd number"); } } } *

whats the output?

Answers

Answered by akashrbllps
1

OUTPUT :

It is odd number

Explanation :

//WELL I M NOT JAVA PROGRAMMER I M C++ OF STD 10 BUT I HAVE SOME KNOWLEDGE ABOUT JAVA

11 is not divisible by 2 according to given condition so this output will

Similar questions