public static void main(String [] args)
{
int num=100;
if(num ++>100);
{
num =200;
}
System.out.println(num);
}
A. 100
B. 200
C. 201
D. 101
int[] x = {125,21,5,168,98};
int max = x[0];
for (int i=1; i<x.length; i++){
if(x[i] < max)
max = x[i];
}
System.out.println(max);
A. 125
B. 5
C. 98
D. 168 |
|