I cant seem to solve this code. No matter how much I try!
Please do help me.
If I am trying to make X=12 then I couldn't make Y=2 &
If I am trying to make y=2 then I couldn't make x=12 .
This is the only code, where I am stuck so far. I have even completed the other tasks after this one. please tell me, what I am doing wrong here!
package com.codegym.task.task01.task0107;
/*
No comments needed
*/
public class Solution {
public static void main(String[] args) {
int x = 2;
int y = 12;
// x = x * 3;
// y = x + y;
x = y - x;
y = y - x;
System.out.println(x);
System.out.println(y);
}
}