package com.codegym.task.task01.task0107;
/*
No comments needed
*/
public class Solution {
public static void main(String[] args) {
int x = 2;
int y = 12;
// y = x * y;
y = x + y;
x = y - x;
y = y - x;
System.out.println(x);
System.out.println(y);
}
}
hidden #10514438
Level 2
i dont understand the code the relation between x and y
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Subhakanta Roul
21 August 2019, 03:40
no relation. the program only swaps the values of both of the variables without using a 3rd variable
0