Advertisement
Dprogrammed1

java ques 59

Mar 28th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1.  class comma_operator
  2.     {
  3.         public static void main(String args[])
  4.         {    
  5.              int sum = 0;
  6.              for (int i = 0, j = 0; i < 5 & j < 5; ++i, j = i + 1)
  7.                  sum += i;
  8.          System.out.println(sum);
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement