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
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
Physics,
2 months ago
Hindi,
5 months ago
Social Sciences,
5 months ago
English,
10 months ago
English,
10 months ago