Skip to content

Tag Archives: pattern-printing

Given a number as ‘num’, and Number of lines as ‘num_of_lines’ where ‘num’ implies the starting number from which the pattern has to be started… Read More
Given a number N, the task is to print the following pattern:- Examples: Input : 10 Output : * * * * * * *… Read More
Given the minimum number of stars and the height of the pyramid, print the pattern. Examples: Input: min_stars = 1 p_height = 5 Output: *… Read More
Given a number N, the task is to print the following pattern:- Examples:  Input : N = 4 Output : 4 4 4 4 4… Read More
Given a positive integer n, print the matrix filled with rectangle pattern as shown below: a a a a a a b b b a… Read More
Given the value of n i.e, the number of rows, print the following pattern. Examples : Input : n = 4 Output : 1 5… Read More
Given the value of n, print the following pattern. Examples : Input : n = 4 Output : A1 AB12 ABC123 ABCD1234 Input : n… Read More
You have given a number n then you have to print number a right-angled pyramid of * Examples:   Input : 3 Output : * ** ***… Read More
Program to print the hollow numerical parallelogram. Examples : Input : 7 Output : 7777777777777 666666 666666 55555 55555 4444 4444 333 333 22 22… Read More
Floyd’s triangle is a triangle with first natural numbers. Task is to print reverse of Floyd’s triangle. Examples: Input : 4 Output : 10 9… Read More
This article is aimed at giving a PHP implementation for pattern printing. Simple Pyramid Pattern <?php // Php code to demonstrate // star pattern   … Read More
Given the value of length, print the X pattern in a box using # and ” ” Examples: Input : 10 Output : ########## ##… Read More
Given user input, this Python3 program will print the input in designed font. In this article, we will do some cool Python trick. For the… Read More
This article demonstrates the pattern to print the Venus Symbol (International gender symbol for females). C++ // C++ code to wish happY Women's DaY   … Read More
Given the value of length, print the crown pattern using ‘*’ and ‘#’. Note : In order to print a perfect crown, take the value… Read More