## Program to print Square inside a Square in C

Published on 09-Jan-2020 07:16:17
Program DescriptionPrint Square inside a Square as shown belowAlgorithmAccept the number of rows the outer Square to be drawn Display the Outer Square with the number of rows specified by the User. Display another square inside the outer square.Example/* Program to print Square inside Square */ #include <stdio.h> int main() ... Read More

## Program to print solid and hollow square patterns in C

Published on 09-Jan-2020 07:11:41
Program DescriptionIn geometry, a square is a regular quadrilateral, which means that it has four equal sides and four equal angles.Solid and Hollow Square will appear as shown belowAlgorithmFor Solid Square −Accept the Number of Rows from the user to draw the Solid Square For each Row, Print * for ... Read More

## Program to print solid and hollow rhombus patterns in C

Published on 09-Jan-2020 07:05:55
Program DescriptionPrint the Solid and Hollow Rhombus Patterns as show belowAlgorithmFor Hollow Rhombus −Accept the Number of Rows for Hollow Rhombus from the User Create a Hollow Rhombus containing the same number of Rows specified by the User. Print the first row containing the number of stars same as the ... Read More

## Program to print right and left arrow patterns in C

Published on 09-Jan-2020 06:59:40
Program DescriptionPrint the Right and Left arrow PatternsAlgorithmAccept the number of rows to print the Left and Right Arrow Pattern.Print Upper Part of the Arrow with Stars Patterns Print Inverted Right Triangle with Stars Patterns Print Bottom Part of the Arrow with Stars Patterns Print the Right Triangle with Stars ... Read More

## Program to print Reverse Floyd’s triangle in C

Published on 09-Jan-2020 06:53:19
Program DescriptionFloyd's triangle is a right-angled triangular array of natural numbers, used in computer science education. It is named after Robert Floyd. It is defined by filling the rows of the triangle with consecutive numbers, starting with a 1 in the top left corner1             ... Read More

## Program to print pyramid pattern in C

Published on 09-Jan-2020 06:49:19
Program DescriptionA pyramid is a polyhedron formed by connecting a polygonal base and a point, called the apex. Each base edge and apex form a triangle, called a lateral face. It is a conic solid with polygonal base. A pyramid with an n-sided base has n + 1 vertices, n ... Read More

## Program to print pentatope numbers upto Nth term in C

Published on 09-Jan-2020 06:45:40
Program DescriptionA pentatope number is a number in the fifth cell of any row of Pascal's triangle starting with the 5-term row 1 4 6 4 1 either from left to right or from right to left.The first few numbers of this kind are1, 5, 15, 35, 70, 126, 210, ... Read More

## Program to print numeric pattern in C

Published on 09-Jan-2020 06:43:20
Program DescriptionPrint the numeric pattern by accepting the number of rows from the user.Input: 5 Rows1 6 2 10 7 3 13 11 8 4 15 14 12 9 5AlgorithmPrint the pattern from the end of each Row Complete the last column of each Row Start from the Second Last ... Read More

## Program to print Diamond Pattern in C

Published on 09-Jan-2020 06:41:00
Program DescriptionThe Diamond pattern is a combination of simple pyramid pattern and inverted pyramid pattern.AlgorithmFirst Row: Display 1 Second Row: Display 1, 2, 3 Third Row: Display 1, 2, 3, 4, 5 Fourth Row: Display 1, 2, 3, 4, 5, 6, 7 Fifth Row: Display 1, 2, 3, 4, 5, ... Read More

## Program to print numbers columns wise in C

Published on 09-Jan-2020 06:35:52
Program DescriptionPrint the natural numbers columns wise as show below1 2 6 3 7 10 4 8 11 13 5 9 12 14 15Algorithmi stands for rows and j stands for columns. 5 stands for making pattern for 5 Rows and Columns Loop for each Row (i) K is initialized ... Read More