Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class comma_operator
- {
- public static void main(String args[])
- {
- int sum = 0;
- for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1)
- sum += i;
- System.out.println(sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement