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
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
Computer Science,
22 days ago
Geography,
22 days ago
Physics,
22 days ago
Social Sciences,
1 month ago
Social Sciences,
1 month ago
Hindi,
8 months ago