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)/3;
System.out.println(x);
System.out.println(y);
}
}
the last condition is not fulfilled in any case.
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
smile
30 March 2019, 02:54
Goal:
1. "uncomment" = remove "// " from comment
2. make "x=12" & "y=2" by "uncomment 1 comment"
0
srikanth
10 March 2019, 11:43
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);
}
}
bt i did not understand how the value of y=2 changed
+1
Steve Rodgers
1 November 2018, 05:02
Use "//" to comment out certain lines. Remember, with each line the variable of x and y will change. comment out certain lines until the variable x = 12 and y = 2
0
Khurram
26 October 2018, 07:20
you can only remove comments from the lines, you cannot change the code itself (you have changed line 16)
+1