fork download
  1. class ArithmeticDemo {
  2.  
  3. public static void main (String[] args)
  4. {
  5. int result;
  6. result=-2 + 5 * 7- 7 / 2 % 5;
  7. System.out.println("The result is: " + result);
  8. }
  9. }
Success #stdin #stdout 0.11s 33700KB
stdin
Standard input is empty
stdout
The result is: 30