Pyramid Programs in VB (Visual Basic)The pyramid is like a triangular structure. Pyramid programs are used to extend coding, thinking, logic, looping and nested looping concepts. The interviewer usually asks these patterns to examine the logic and programming skills of the interviewee. In this topic, we will learn how to create various pyramid patterns in Visual Basic. 1. Star Pattern ProgramsProgram to print the Half PyramidModule1.vb Output: Program to print an inverted half pyramidModule2.vb Output: Program to print an inverted full pyramidModule3.vb Output: Program to print the full pyramidModule4.vb Output: Program to print two half pyramidsModule5.vb Output: Program to print a pyramid shapeModule6.vb Output: Program to print a full pyramidModule7.vb Output: Program to print a right inverted pyramidModule8.vb Output: Program to print a right pyramidModule9.vb Output: 2. Number Pattern ProgramProgram to print the Half Pyramid of numberModule1.vb Output: Program to print the Floyd's TriangleModule2.vb Output: Program to print the Half Pyramid of the same numberModule3.vb Output: Program to print an inverted half pyramid of numberModule4.vb Output: Program to print an inverted half pyramid of numbersModule5.vb Output: Program to print the Pascal's triangleModule6.vb Output: 3. Alphabets Pattern ProgramProgram to print a half pyramid of alphabetsModule1.vb Output: Program to print a half pyramid of alphabetsModule2.vb Output: Next TopicProgram to calculate Volume of Cone |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India