Computer Science, asked by atharvsaxena999, 3 months ago

IV. Unsolved Java Programming:
1. Write a program to find and display the value of the given expressions
x+3÷6-2x+5÷3;
; taking the value of x = 5​

Answers

Answered by ramyaperavali136
1

Answer:

public class Main {

public static void main (String[] args ) {

int x = 5;

int result = x+3/6-2*x+5/3 ;

System.out.println(result) ;

}

}

Output : -4

Similar questions