Computer Science, asked by mrknowledge624siri, 10 months ago

What are the values of a and b after the following function is executed,if the values passed are 30 and 50:in java
Void paws(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
System.out.println(a+”,”+b);
}

Answers

Answered by sherlock611holmes
42

Answer:

input:-

a=30;

b=50;

a=30+50=80;

b=80-50=30;

a=80-30=50;

output:-

50,30

Similar questions