Java/TSpattern2.java
<filename>Java/TSpattern2.javaimport java.util.Scanner;
public class TSpattern2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int r =  sc.nextInt();
        for(int i = 1 ;i <= r ; i++){
            for(int j = 1; j <= r+1-i; j++){
                System.out.print("*");}

            System.out.println();
        }
        sc.close();
    }
}


    
