public class Output
{
static void main()
{
int a = 5, b = 6, c = 0;
c = (a+b>8) ? 2*a : 3*b;
System.out.println(c);
}
}
Answers
Answered by
0
Answer:
? should not be there in your program of java and colon is wrong This should give an error remove colon and ? mark
Similar questions