Input:
2*3-4*5
Output:
[ -34, -14, -10, -18, 10)
Explanation:
(2* ( 3 - (4*5) ) ) = -34
((23) - (4.5)) = -14
((2 (3-4) )*5) - - 19
(2* ((3-4)*5)) = - 10
(((2*3)-4)*5)
program in java
Answers
Answered by
0
Input:
=> 2*3-4*5
Output:
[ 1 ] -34
[ 2 ] -14
[ 3 ] -10
[ 4 ] -18
[ 5 ] 10
Explanation:
=> (2* ( 3 - (4*5) ) ) = -34
=> ((23) - (4.5)) = -19
=> ((2 (3-4) )*5) = -10
=> (2* ((3-4)*5)) = -10
=> (((2*3)-4)*5) = 10
Program:
public class maths
{
public static void main(String args[])
{
int a =(2*(3 -(4*5))) = -34
int b = ((23)-(4.5)) = -19
int c = ((2 (3-4) )*5) = -10
int d = (2* ((3-4)*5)) = -10
int e = (((2*3)-4)*5) = 10
System.out.println("a");
System.out.println("b");
System.out.println("c");
System.out.println("d");
System.out.println("e");
}
}
Hope I answered your question.....
Please mark me brilliant...
Similar questions