Doubt in pattern3

package pattern;

import java.util.Scanner;

public class pattern3 {

public static void main(String[] args) {
	// TODO Auto-generated method stub

	Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
	
	int row=1;
	while(row<=n) {
		int col=n;
		while(col<=row) {
			System.out.print("*");
			col--;
		}
		System.out.println();
		row++;
	}
}

}
what is wrong in this code

Your code is going into an infinite loop
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int row = 1;
while (row <= n) {
int col = n-row;
while (col>=0) {
System.out.print("*");
col–;
}
System.out.println();
row++;
}
}
}