Pattern in basic

please give me the solution of pattern19