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
42
Answer:
input:-
a=30;
b=50;
a=30+50=80;
b=80-50=30;
a=80-30=50;
output:-
50,30
Similar questions
Computer Science,
5 months ago
Math,
10 months ago
Math,
10 months ago
Political Science,
1 year ago
English,
1 year ago