0% found this document useful (0 votes)
4 views4 pages

Asmnt 6

Uploaded by

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

Asmnt 6

Uploaded by

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

Pattern program assignment question

1.Right-Angle Triangle Pattern (Stars)

**Output:**

**

***

****

*****

2.Inverted Right-Angle Triangle (Stars)

Output:

*****

****

***

**

3. Pyramid Pattern

Output:

***

*****

*******

*********
4. Inverted Pyramid Pattern.

Output:

*********

*******

*****

***

5.Diamond Pattern

Output:

***

*****

*******

*********

*******

*****

***

6.Number Triangle Pattern


Output:

12

123

1234

12345

7. Inverted Number Triangle

Output:

12345

1234

123

12

8.Right-Angle Triangle (Numbers)

Output:

23

456

7 8 9 10

11 12 13 14 15
9. Right-Angle Triangle (Alphabet Pattern)

Output:

AB

ABC

ABCD

ABCDE

10. Floyd’s Triangle

Output:

23

456

7 8 9 10

11 12 13 14 15

You might also like