Computer Science, asked by student9220, 1 month ago

public class Output
{
static void main(int a, int b)
{
int S=0;
S+=(a>o)?a:-b;
S-= (a<o)?-a+b;
System.out.println(s);
}
}
When:
a. a=-5 and b=-6
b. a=5 and b=6​

Answers

Answered by tejaswaroopbattula
4

Answer:

a. S=1

b. S=-1

please mark me brainliest

Similar questions