Advertisement
Dindamayanti

Operator Aritmatika

Sep 15th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class OperatorAritmatika
  3. {
  4. public static void main(String args[])
  5. {
  6. System.out.println("5 + 2 = " + (5 + 2));
  7. System.out.println("6 - 3 = " + (6 - 3));
  8. System.out.println("8 * 5 = " + (8 * 5));
  9. System.out.println("15 / 3 = " + (15 / 3));
  10. System.out.println("10 % 4 = " + (10 % 4));
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement