//The question itself (my code after that)

Variable n is randomly generated integer. Output characters '\*' and '#' so that the first row contains only stars and the last one only number signs. The number of stars decreases in each consecutive row. The total number of characters in a row is n and there are n + 1 rows.

For example, if n has value 5, the program would output:

```
 *****  
 ****#    
 ***##      
 **###       
 *####      
 #####      

```

//My code below!

```
Random r = new Random();       
int n = r.nextInt(5) + 10;    
System.out.println("n: "+n);

while(n>0){

for(int star = n; star>0; star--){
  System.out.print("*");
}

for(int hash = 0; hash<n; hash++){
  System.out.print("#");

    } 

    System.out.println("");  //new line
n--;

}

```

//My code output - problem: the #'s need to increase in size from 0 rather than decrease like the \*'s

```
**********##########
*********#########
********########
*******#######
******######
*****#####
****####
***###
**##
*#

```