FaltuTech.Club : Fane of Advanced Logical Thriving Utopian Technical Club

Creating Inverted Triangle With * – Hollow and Filled – in Java

Filled Triangle




class TriFilled{
	public static void main(String args[]){
		int height = 5;
		
		// loop for total height of triangle
		
		for(int i=1;i


Output

Hollow Triangle



class TriHollow{
	public static void main(String args[]){
		int height = 5;
		
		// loop for total height of triangle
		
		for(int i=1;i

Output