Write a program to input any two integer numbers and interchange the value without using a third variable. And please it is a humble request that if you know the answer then only reply otherwise I will report it.
Answers
Answered by
1
Answer:
SEE MY POST BELOW AND PLS MARK ME AS BRAINLIST
Attachments:
Answered by
42
There are many Approaches. I am showing you one of them.
class x
{
static void main(int a, int b)
{
a+=b;
b=a-b;
a-=b;
}
}
Write the print statements on your own.
Similar questions
English,
5 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Hindi,
10 months ago
Math,
10 months ago
Computer Science,
1 year ago
Social Sciences,
1 year ago
Biology,
1 year ago