Computer Science, asked by legendofgaming, 4 months ago

What is the output of the following program with steps
public class Compute
{
public void calculate(int b, int a, int c)
{
a -= 2;
b = a-b;
c = a+b;
System.out.println(b + “ # ” + a + “ @ ”+c);
}
public static void main(String args[])
{
Compute obj = new Compute();
int a = 15, b =8, c =12;
obj.calculate(a,b,c);
}
}

Answers

Answered by ajb7899
0

Answer:

a=13

b=5

c=18

Explanation:

Hope it helps

Similar questions