You are on page 1of 3

Programming Fundamentals

ASSIGNMENT

Note: Run following codes on Dev C++ , take screenshots of code as well as your
output screen and make a word file ,Submit Assignment in printed form.

Problem Statement#1

Write a C++ program to print inverted half pyramid as using numbers

11 11 1

222 2

33 3

44
5

Problem Statement#2

Write a C++ program to display reverse pyramid

*********
*******

*****

***

Problem Statement#3

Write a C++ program to print the pyramid of digits in pattern

123

12345

1234567
123456789

Problem Statement# 4

Write a C++ program to display Floyd's Triangle

23

456

7 8 9 10

Problem Statement#5

Write a C++ program to display following pattern

1* * * *

12 * * *

123 * *

1234 *

12345

Problem Statement#6

Write a C++ program to display following pattern

12345

23456

34567

45678

56789
Problem Statement#7

Write a C++ program to print two pyramids using *

***

*****

*******

*********
*******

*****

***

You might also like