Computer Science, asked by rehan33, 1 year ago

give the output of Java program
if X=6
X=++X*++X%4;

Answers

Answered by kritika2727
0
x=7*8%4
x=7*0
x=0 will be ur answer because mod dives us remainder
Answered by themonotonuspan
0
X = 6
So,

X = ++X*++X%4;

And the output will be,
6=5*5%4
6=25%4
6=1

themonotonuspan: Please mark as brainliest
kritika2727: u have done wrong
themonotonuspan: :(
themonotonuspan: still mark as brainliest
kritika2727: why
themonotonuspan: i have done a lot of hardwork to answer your question
kritika2727: it was not my question
kritika2727: my ans is already marked as brain list
Similar questions