Practice level 6 · Medium · 20 programs

Nested loops and patterns

Pyramids, Floyd, Pascal, diamond and butterfly.

The programs in this level

  1. Print square pattern
  2. Print rectangle pattern
  3. Print right triangle
  4. Print inverted triangle
  5. Print pyramid
  6. Print inverted pyramid
  7. Print number triangle
  8. Print inverted number triangle
  9. Print Floyd's triangle
  10. Print Pascal's triangle
  11. Print alphabet triangle
  12. Print inverted alphabet triangle
  13. Print hollow square
  14. Print hollow rectangle
  15. Print hollow triangle
  16. Print diamond pattern
  17. Print butterfly pattern
  18. Print X pattern
  19. Print plus pattern
  20. Print numeric pyramid

Unlock this lesson

Create a free account, then buy the course to open every lesson.

Everything in C Programming: BCA, MCA, BTech & O Level

  • 37 step-by-step lessons
  • 10 mini projects with solutions
  • A final project for your portfolio
  • Real commands and real output in every lesson
  • Practice task with a solution in each lesson
  • Progress saved to your account