[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/crg-codes/Java-Programs/master/Patterns/pattern21.java [Back]  [Original]

package Patterns;

import java.util.*;
 /*
                        1234567
                         234567
                          34567
                           4567
                            567
                             67
                              7
                             67
                            567
                           4567
                          34567
                         234567
                        1234567
*/
public class pattern21
{
    public static void main(String[] args) 
    {
        Scanner sc = new Scanner(System.in);
        System.out.println("How many rows you want in this pattern?");
        int rows = sc.nextInt();
        //Printing upper half of the pattern
         
        for (int i = 1; i 

Web Proxy Viewer  |  New URL  |  Original Page