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

suresh kumar

Updated on 13-Jul-2020 12:04:35

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 Reverse Floyd’s triangle in C

suresh kumar

Updated on 13-Jul-2020 12:01:16

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 solid and hollow rhombus patterns in C

suresh kumar

Updated on 13-Jul-2020 11:59:46

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 Lower triangular and Upper triangular matrix of an array in C

suresh kumar

Updated on 13-Jul-2020 11:53:43

Program DescriptionWrite a program to print lower triangular matrix and upper triangular matrix of an Array.Triangular MatrixA Triangular matrix is one that is either lower triangular or upper triangular.Lower Triangular MatrixA square matrix is called lower triangular if all the entries above the main diagonal are zero.Upper Triangular MatrixA square matrix is called upper triangular if all the entries below the main diagonal ... Read More

## Program to print Square inside a Square in C

suresh kumar

Updated 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 int main() ... Read More

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

suresh kumar

Updated on 09-Jan-2020 07:01:22

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 pyramid pattern in C

suresh kumar

Updated 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

suresh kumar

Updated on 09-Jan-2020 06:46:55

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

suresh kumar

Updated 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

suresh kumar

Updated 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