Professional Documents
Culture Documents
Take Input the total number of lines from the user and then display the following equilateral triangle shape.
For example:
If the user inputs 3, then your program should print:
*
***
*****
Lab Task 2
Take Input the total number of lines from the user and then display the following equilateral triangle shape.
For example:
If the user inputs 3, then your program should print:
*****
***
*
Lab Task 3
Take Input the total number of lines from the user and then display the following equilateral triangle shape.
For example:
If the user inputs 3, then your program should print:
*****
***
*
Lab Task 4
Take Input the total number of lines from the user and then display the following equilateral triangle shape
For example:
If the user inputs 3, then your program should print:
*
***
*****
Lab Task 5
Take Input the total number of lines from the user and then display the following triangle shape
For example:
If the user inputs 3, then your program should print:
*
**
***
**
*
Lab Task 6
Take Input the total number of lines from the user and then display the following Diamond shape.
For example
If the user inputs 5, then your program should print:
*
***
*****
***
*