Share all news to all guy ;)

Saturday, December 20, 2014




    This Code will show you Decreasing Pattern (But It's is a number not *  ).

Here Code :


public static void main(String[] args) {
        for(int i=7 ; i>=1 ;i--)
        {
            for(int j=1 ; j<=i; j++)
                System.out.print(j + " ");
            System.out.println("");
        }
    }
   
}


0 comments:

Post a Comment

Popular Posts

Powered by Blogger.