Computer Science, asked by shaikfarhin110, 5 months ago

find the output of
i)val=1000
ii)val=1500
int val, sum,n=500;
sum=n+val>1750?500:250;
System.out.println (sum);​

Answers

Answered by BrainlyProgrammer
2

Answer:

Output of i) and ii) are same i.e. 750   because in both the case value of 'val' is less than 1750..therefore

sum=500+250

        =750

Explanation:

Similar questions