C Program To Draw Pyramid of Stars, using While Loop

preview_player
Показать описание

Lets write a C program to draw / print / display a pyramid / triangle formed from starts, using while loop.

Outer while loop selects the rows for each iteration. Inside first inner while loop we print the adequate number of space for each row. Inside the second inner while loop we actually print the stars needed for each row.

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

Hi great video it really helped me
Could u pls do other triangles

phakisomokoena
Автор

How do you make numbers into asterisks
Example number is 8 and eight asterisk.

zayfex
Автор

what if i want 2 stars in 2nd row, 3 stars in 3rd row, 4 stars in 4th row and 5 stars in 5th row

notachannel
Автор

Your videos are nice but random and confusing to follow😢 it is good but boring for us students😂😂😂

AFCOE