if x=2 and y=5 what will be d result and d printin | Sololearn: Learn to code for FREE!

-5

if x=2 and y=5 what will be d result and d printin

10/8/2016 9:36:29 PM

nweke chinonso celestine

4 Answers

New Answer

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); }