Computer Science, asked by ahaana16, 5 months ago

Find the output of the following Java Program
public class Test {
public static void main(String[] args)
int p=45, q=23, r=4;
int res= ((p>q && q>r)?q%10:p/10)>1500?400:500;
System.out.println(res);
}

Answers

Answered by sandhyanullari
0

Answer:

int i; for (i=1; i<=n; i++){ total = total +i;. } } public static void main(String ... variables p=0, q=0), and p starts referring to the new ... public static void copyarray(double a[], double b[], int ai,.

Hope it helps to u.....

Similar questions