Tuesday, September 25, 2012

Java Exercise #3: Display Simple Pattern

This is a simple exercise to print a pattern on the console.

Exercise: Write a program that prints the following pattern on the Console.

 W           W W           W W           W
  W         W   W         W   W         W 
   W       W     W       W     W       W  
    W     W       W     W       W     W   
     W   W         W   W         W   W    
      W W           W W           W W     
       W             W             W     

Download Code: Display Pattern

No comments:

Post a Comment