double c=0,s=5900;
c=(s>6000) ? 5/1000*s:2/1000*s;
System.out.print (c);
Answers
Answered by
1
Answer:
Hey
The value of c is 11.8
Explanation:
According to your condition, s is not greater than 6000 therefore the program will check the second condition which is true..
Similar questions