+ 1
Can anyone guess the output for this code
int x=4; int y; y=++Ă*4/x+x; System.out.print(y+x);
9 Respostas
+ 19
Error.. uve used Ă instead of x
+ 18
@S Vengat you forgot +x in denominator... /x+x
+ 8
Is it actually
y = 5*4/4+4
or
y = 5*4/5+5
Nobody knows.
+ 8
đȘđ«
+ 6
y = ++4 * 4 / x + x
y = 5 * 4 / 5 + 5
y = 4 + 5
y = 9
x + y = 5 + 9 = 14.
Output: 14
@Frost Dang haha, I didn't catch that.
+ 6
9 by PEMDAS I suppose
(4+1)*4/4, then the result 5
5+4=9
Amirite?
+ 4
System.out.println( đȘ > đ«);
đŒ
Output: True
+ 3
@Hasty Another fail by me, yea it should be
5 * 4 / 5 + 5;
Since this gives 2:
int x = 0;
System.out.println(++x + x);
Spooky đ¶
(I'll just edit my original post like nothing happened. Idk what yall talking about, focus on your cookies.)
+ 2
but given key is 14