- 5

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

8th Oct 2016, 9:36 PM
nweke chinonso celestine
4 Antworten
0
for some reason I keep getting error!
11th Oct 2016, 9:22 PM
Ulonda Best
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.
18th Oct 2016, 9:13 PM
Molly Yates
Molly Yates - avatar
- 1
he means d = the
30th Jan 2017, 11:38 AM
Dee Boxer
Dee Boxer - avatar
- 3
if (x == 2 && y == 5) { System.out.println(d); }
9th Oct 2016, 4:17 AM
Genry S
Genry S - avatar