Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

Pyramid Types 3 in Java

VIEWS: 16 PAGES: 1

I am going to upload lots of Java Programs for Java Learner.

More Info
									//Write a program to make Pyramid types Figures
class Fig4
{
  public static void main(String s[])
  {
    int a=Integer.parseInt(s[0]);
   for(int i=1;i<=a;i++)
   {
     for(int j=(a-i);j>=1;j--)
      System.out.print(" ");
     for(int k=1;k<=i;k++)
      System.out.print("*");
      System.out.print("\n");
   }

    }
}

Output:




Read More…

								
To top