java

Write a program to repeat printing an inverted right angle triangle in JAVA

Write a program to repeat printing an inverted right angle triangle in JAVA ( #JAVA )

java

//  Question 7 :
//  Write a program to repeat printing an inverted right angle triangle in JAVA

package com.company;
import java.util.Scanner;
public class Pattern
{
    public static void main (String args[])
    {
        int l,n;
        Scanner sc= new Scanner(System.in);
        System.out.println("Input value of \'n\'");
        n= sc.nextInt();
        for (l=1;l<=5;l++)
        {
            int i,j;

            for (i=n ; i>0 ; i--)
            {
                for (j=0 ; j < i ; j++)
                {
                    System.out.print("*");
                }
                System.out.println();
            }
        }
    }       // end of main
}       // end of class


Thanks Dosto for Reading this blog.

I think you all are definitely thinking of being connected with me.

Are you??
Yaa I know no-one is here but then also I provide my all social media links of my Digital Creation Tech DCode and my personal handles.
πŸ§‘β€πŸ’»πŸ§‘β€πŸ’» Social Media Links of Tech DCode :

πŸ§‘β€πŸ’»πŸ§‘β€πŸ’» Social Media Links of SHIVAM SINGH (OWNER) :
πŸ‘‰πŸ» Instagram : https://www.instagram.com/virtualshivamin/
πŸ‘‰πŸ» Facebook Page : https://www.facebook.com/virtualshivamin/
πŸ‘‰πŸ» Twitter : https://twitter.com/virtualshivamin/
πŸ‘‰πŸ» Personal Linktree : https://linktr.ee/virtualshivamin

🀟🀘 Check Best Offers/Deals and Discount on Amazon :
πŸ‘‰ Amazon : https://amzn.to/3tLt2FN
πŸ‘‰ Bestsellers : https://amzn.to/31boSuB
πŸ‘‰ New Realeases : https://amzn.to/3rdru5U
πŸ‘‰ Movers and Shakers : https://amzn.to/3lFu5nY
πŸ‘‰ Computer and accessories : https://amzn.to/3lERTbJ
πŸ‘‰ Electronics : https://amzn.to/3sqHW4l
πŸ‘‰ Softwares : https://amzn.to/3ccwAee

Leave a Reply

Your email address will not be published. Required fields are marked *