集册 Java实例教程 以下程序打印什么? 3

以下程序打印什么? 3

欢马劈雪     最近更新时间:2020-01-02 10:19:05

416
提示:您可在线编辑运行本教程的实例 - 运行实例,去试试!
以下程序打印什么? 3

public class Main //来 自 时 代 J a v a

{

   public static void main(String[] args)

   {

      int row = 10;


      while (row >= 1) 

      {

         int column = 1;


         while (column <= 10) 

         {

            System.out.print(row % 2 == 1 ? "<" : ">");

            ++column;
            /** from 
            时   代    Java - nowjava.com**/

         }


         --row;

         System.out.println();

      } 

   } 

}