Team Emertxe
Basic Refresher
Assignment 8
Assignment 8
Assignment 8
WAP to print pyramid pattern as shown below.
Assignment 8
WAP to print pyramid pattern as shown below.
Input:
Assignment 8
WAP to print pyramid pattern as shown below.
Input: Read integer ‘num’
Assignment 8
WAP to print pyramid pattern as shown below.
Input: Read integer ‘num’
Output:
Assignment 8
WAP to print pyramid pattern as shown below.
Input: Read integer ‘num’
Output: Create pyramid pattern with ‘num’ of columns.
Assignment 8
Example’s:
Assignment 8
Example’s:
Input:
Assignment 8
Example’s:
Input: num = 4
Assignment 8
Example’s:
Input: num = 4
Output:
Assignment 8
Example’s:
Input: num = 4
Output:
4
3 4
2 3 4
1 2 3 4
2 3 4
3 4
4
Assignment 8
Example’s:
Input:
Assignment 8
Example’s:
Input: num = 5
Assignment 8
Example’s:
Input: num = 5
Output:
Assignment 8
Example’s:
Input: num = 5
Output:
5
4 5
3 4 5
2 3 4 5
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
Sample execution:-
Assignment 8
Sample execution:-
Assignment 8
Sample execution:-
Assignment 8
Assignment 8
Pre-requisites:-
Assignment 8
Pre-requisites:-
Loops
Assignment 8
Pre-requisites:-
Loops
Objective:-
Assignment 8
Pre-requisites:-
Loops
Objective:-
To understand the concept of nested looping
Team Emertxe
Thank you

08_pyramid_pattern.pdf