Objective: get familiar with the patterns using loops.
Background: Student should have concepts of Arrays data structure and loops
Pre-Lab: Students should implement all lab-related arrays and loops.
Assessment tools:
The assessment is according to the student participation in the lab if the student solves the exercise, he will get the participation mark for this lab.
Q1: Print Following Pattern using nested loops
Output
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Q2: Print Following Pattern using nested loops
Output
*****
*****
*****
*****
Q3: Print Following Pattern using nested loops
Output
*****
****
***
**
*
Q4: Print Following Pattern using nested loops
Output
*
**
***
****
*****
*****
****
***
**
*
Q5: Print Following Pattern using nested loops
Output
*
**
***
****
*****
Q6: Print Following Pattern using nested loops
Output
*
**
***
****
*****
****
***
**
*
Q7: Print Following Pattern using nested loops
Output
*
**
***
****
*****
**
**
**
**
Submission Link :
Post a Comment