create an inverted triangle depending from input 1 - 9 :     import java.util.*;

    public class NestedFor 
    {
	    public static void main (String [] args)
	    {
		    Scanner console = new Scanner (System.in);
		    int n; 
		    System.out.print("Enter any positive Integer: ");
		    n = console.nextInt();
		
		
		    for(int r = n - 1; r>=0; r--)
		    {
			   for (int c = 0; c<=r; c++)
				    System.out.print(c+1);
			    System.out.println();
		    }
		
	    }
    }

I want to output an inverted perfect triangle from my inverted right triangle, im having a hardtime with this. anyone can help me? thanks!! 