Add Code Here/JAVA/equilateralTriangle.java
<reponame>RCC-MRU/Hacktoberfest2022new<gh_stars>0import java.io.*;


public class equilateralTriangle
{
	
	public static void printTriangle(int n)
	{
		
		
		for (int i=0; i<n; i++)
		{

			
			
			for (int j=n-i; j>1; j--)
			{
				
				System.out.print(" ");
			}

			
			
			for (int j=0; j<=i; j++ )
			{
				
				System.out.print("* ");
			}

			
			System.out.println();
		}
	}
	
	
	public static void main(String args[])
	{
		int n = 5;
		printTriangle(n);
	}
}
