Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package operator;
- public class IncDecOP {
- public static void main(String[] args) {
- int m = 50, n = 30;
- System.out.printf("%d %d %n", m--, n++); // 50 30
- System.out.printf("%d %d %n", m, n); // 49 31
- System.out.printf("%d %d %n", --m, ++n); // 48 32
- System.out.printf("%d %d %n", m, n); // 48 32
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement