Computer Science, asked by kaju919, 1 year ago

what will be the output ....

int a=10,b=20; System.out.println(a+b+"supposed to be equal to"+a+b);

Answers

Answered by Sumanmi
7

Output = 30supposed to be equal to1020


Sumanmi: wlcm
Sumanmi: Wonderful
Sumanmi: why? It was quite easy
Sumanmi: ohhhh
Answered by madityam188
8
30+"Supposed to be equal to"+30

Sumanmi: and plz post the output here
kaju919: sure
Sumanmi: I might be wrong
kaju919: how can we post a pic on brainly?
Sumanmi: no I mean type the output here
kaju919: ok
kaju919: madityam188's answer was correct
madityam188: thanks
Sumanmi: OK thanks
kaju919: welcome
Similar questions