public class Mystery3
1: public class Mystery3
2: {
3: public static void main( String args[] )
4: {
5: int row = 10;
6: int column;
7:
8: while ( row >= 1 )
9: {
10: column = 1;
11:
12: while ( column <= 10 )
13: {
14: System.out.print( row % 2 == 1 ? "<" : ">" );
15: ++column;
16: } // end while
17:
18: --row;
19: System.out.println();
20: } // end while
21: } // end main
22:
23: } // end class Mystery3
24:
25:
26:
27: /**************************************************************************
28: * (C) Copyright 1992-2005 by Deitel & Associates, Inc. and *
29: * Pearson Education, Inc. All Rights Reserved. *
30: * *
31: * DISCLAIMER: The authors and publisher of this book have used their *
32: * best efforts in preparing the book. These efforts include the *
33: * development, research, and testing of the theories and programs *
34: * to determine their effectiveness. The authors and publisher make *
35: * no warranty of any kind, expressed or implied, with regard to these *
36: * programs or to the documentation contained in these books. The authors *
37: * and publisher shall not be liable in any event for incidental or *
38: * consequential damages in connection with, or arising out of, the *
39: * furnishing, performance, or use of these programs. *
40: *************************************************************************/