#Java help
50 messages · Page 1 of 1 (latest)
Okay, so you know how to define variables. So do something similar like you did with money, and define one for x1.
int x1 = 1 + 1;
For example.
So I jst do that for the rest?
yes, mostly
Alr lemme see if I get stuck again lemme do this rq
I jst didn’t know what it was asking me to do lmao
Alr bro im stuck again
So on problem C what do I do for x3
Cause y3=4
And I can’t put 4 right
int y3 = 4;
int z3 = 3;
int x3 = y3++ + ++z3;
Yep.
Seems fine, but it does ask only the print x(n), e.g x3.
Ah so jst the last one
Alr so now I don’t understand the last 3
Cuz D has two X, and E has a less then symbol and F has 2 X with *
Nvm I got it it’s pretty much copy and print for all of em right
*= is a operator.
What do you mean?
Uh idk
int x6 = 5;
x6 *= 3;
Is that how it’s defined?