Computer Science, asked by suchitakumari127, 7 months ago

int a =2;system .out.print(("2+2/2") +(2+2/2)); what will be the output of this code in java ​

Answers

Answered by sahatanmai32
1

Answer:

syntax error

Explanation: if u put a = 2 then the syntax must be :- System.out.println((a+a/a)+(a+a/a));. hope it helped

Similar questions