Problem Statement Given an integer N,our task is to output a pattern W of height N Example: input: N=3 Output: * * …