pattern program basic

public static void main(String[] args) {
// TODO Auto-generated method stub
for(int row = 5; row>=3; row-- )
{
for(int no = 1; no<=5; no++)
{
System.out.print(row);
}
System.out.println();
}
out put
55555
44444
33333
public static void main(String[] args) {
        // TODO Auto-generated method stub

        for(int row = 5; row>=3; row-- ) 
        {

        for(int no = 1; no<=5; no++)
       {
           System.out.print(row);

       }
        System.out.println();

    }

out put 
55555
44444
33333
public static void main(String[] args) { // TODO Auto-generated method stub for(int row = 5; row>=3; row-- ) { for(int no = 1; no<=5; no++) { System.out.print(row); } System.out.println(); } out put 55555 44444 33333

Enter fullscreen mode Exit fullscreen mode

原文链接:pattern program basic

© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
Those who fly solo have the strongest wings.
那些单独飞翔的人拥有最强大的翅膀
评论 抢沙发

请登录后发表评论

    暂无评论内容