0% found this document useful (0 votes)
3 views

Loops Assignment

The document outlines various C programming assignments focused on printing patterns, including star patterns, diagonal patterns, half pyramids, number pyramids, and Floyd's triangle. Each section provides examples of the expected output for different pattern types. The document serves as a guide for practicing loops in C programming.

Uploaded by

NAKUL VTV
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Loops Assignment

The document outlines various C programming assignments focused on printing patterns, including star patterns, diagonal patterns, half pyramids, number pyramids, and Floyd's triangle. Each section provides examples of the expected output for different pattern types. The document serves as a guide for practicing loops in C programming.

Uploaded by

NAKUL VTV
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Loops Assignment: Printing patterns using C programs

Printing star patterns


1) * * * * *
*****
*****
*****
*****

2) Diagonals
i) ii)
* *
* *
* *
* *
* *

3)Half Pyramid
i) right half pyramid left inverted half pyramid
* *****
** ****
*** ***
**** **
***** *

4) Right Half Pyramid Pattern using number


Sample o/p:
1
12
123
1234
12345

5)Floyd’s triangle sample i/p: 1


2 3
4 5 6
7 8 9 10

You might also like