In Java programing How to solve 828282SolutionAnswer is 682

In Java programing.

How to solve

(8-2+\"8-2\"+(8-2)).

Solution

Answer is : 68-26

How?

The given statement consists of string and number expression

(8-2+\"8-2\"+(8-2))

In above statement the bold expression are numberical expression

after the calculation is performed :

6 +\"8-2\"+6

Here the string concatenation is performed.

finally answer is :

68-26

Test the code is java:

public class HelloWorld{

public static void main(String []args){
System.out.println(\"compute statement is :\"+ (8-2+\"8-2\"+(8-2)));
}
}

In Java programing. How to solve (8-2+\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site