Venciity

[Java] SimpleLoop

May 2nd, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. public class SimpleLoop
  2. {
  3.     public static void main(String[] args)
  4.      {
  5.         for (int small=1, large=10; small<large; small++, large--)
  6.         {
  7.              System.out.printf("%d %d\n", small, large);
  8.         }
  9.      }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment