Docstoc

Pyramid Types 4 in Java

Document Sample
Pyramid Types 4 in Java Powered By Docstoc
					//Write a program to make Pyramid types Figures

class Fig5
{
  public static void main(String s[])
  {
    int a=Integer.parseInt(s[0]);
   for(int i=a;i>=1;i--)
   {
     for(int j=i;j>=1;j--)
      System.out.print("x");
     System.out.print("\n");
   }

    }
}

Output:




Read More…

				
DOCUMENT INFO
Shared By:
Stats:
views:24
posted:5/18/2012
language:
pages:1
Description: I am going to upload lots of Java Programs for Java Learner.