Pattern by using nested loop

welcome to shbcf.ru