What are the outputs of following:
int val, res, n = 1000;
res = n + val < 1750? 400 : 200 ; System.out.println(res);
i) if the input is 2000
ii) if the input is 500
Answers
Answered by
2
Answer:
if the input is 2000:
> 200
if the input is 500
> 400
pls mark as brainliest, cheers :D
Similar questions
Chemistry,
24 days ago
English,
24 days ago
English,
24 days ago
English,
1 month ago
Accountancy,
1 month ago
Geography,
9 months ago
Business Studies,
9 months ago