num

CF

Pattern Printing num & *

Write a program that receives a number as input and prints it in the following format as shown below. Examples:Input:6 Output:…