joseleonweb

Untitled

Aug 14th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public class AvaluadorExpressions {
  2.  
  3.   public static void main(String[] args) {
  4.     int a=3;
  5.     int b=8;
  6.     int c=4;
  7.     int d=2;
  8.     System.out.println(2 - a * b + c);
  9.     System.out.println((2 - a) * b + c);
  10.     System.out.println(a * b - c * a - d);
  11.     System.out.println(a / 3 - b);
  12.     System.out.println(a / (33 - b));
  13.     System.out.println(d * 23 - 1 + b);
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment