1.

What is the output of this program?public class Result { public static void main(String args[]) { int p , q = 2; p = 20; if (p != 20 && p / 0 == 0) { System.out.println(q); } else { System.out.println(++q); } } }

A. 1
B. 2
C. 3
D. 4
E. 5
Answer» D. 4


Discussion

No Comment Found

Related MCQs