Computer Science, asked by karma82, 1 month ago

values of a as 10 and b as 20
y pressions separately in Java. Assume all variable to beintegers and initial
1. x-a/b% b
2. x=b la % b;
3. x-a+ b*a*b; lol​​

Answers

Answered by ADARSH20083
0

Answer:

public static void main(String args[]) {

int a = 10;

int b = 20;

int c = 25;

int d = 25;

System.out.println("a + b = " + (a + b) );

System.out.println("a - b = " + (a - b) );

System.out.println("a * b = " + (a * b) );

System.out.println("b / a = " + (b / a) );

System.out.println("b % a = " + (b % a) );

System.out.println("c % a = " + (c % a) );

System.out.println("a++ = " + (a++) );

System.out.println("b-- = " + (a--) );

// Check the difference in d++ and ++d

System.out.println("d++ = " + (d++) );

System.out.println("++d = " + (++d) );  

Similar questions