viewing paste Unknown #5383 | Java

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
public  class   PrintPatterns{
 
    public  static  void    main(String[] args){
        
        //Initialize count as 0
        int count = 0;
        //set row as 0 as a start point
        int row = 6;
        //define i as char to display ascii variables
        int i;
    
        
            for(i = 1; i <= 6; i++){
                for(count = 1; count <= 6; count++){
                    System.out.print(i+" ");
                }
                System.out.println(" ");        
            }
            
    }
        
}
Viewed 527 times, submitted by Guest.