- 5
if x=2 and y=5 what will be d result and d printin
4 ответов
0
for some reason I keep getting error!
0
You haven't assigned any value to d. It is not a variable unless you initialize it. You could say
int d = x + y;
Or something else, but it has to exist before you can print it. UNLESS you are just trying to print the letter "d" in that case, you need quotation marks around it.
- 1
he means d = the
- 3
if (x == 2 && y == 5) {
System.out.println(d);
}