Consider the program fragment
j = 2;
while ((i % j) ! = 0)
j = j + 1;
if (j < i) printf ("%d", j);
If i >= 2, then the value of j, will be printed only if
A. | i is prime |
B. | j does not divide i |
C. | j is odd |
D. | i is nor prime |
Answer : D Explanation : |
|
Option: A Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. |