Pattern 4 number of stars

Why nst written before loop not working ?