Hi everyone,
I'm having problem to do the programming about this question for my assignment.
Question:
Write a program that uses for statement to print the following patterns separately, one below the other. Display the pattern on the screen, as well as on the output file. If you input 6, you should display all four patterns as below:
*
**
***
****
*****
******
******
*****
****
***
**
*
******
*****
****
***
**
*
*
**
***
****
*****
******
I'm having problem to do the programming about this question for my assignment.
Question:
Write a program that uses for statement to print the following patterns separately, one below the other. Display the pattern on the screen, as well as on the output file. If you input 6, you should display all four patterns as below:
*
**
***
****
*****
******
******
*****
****
***
**
*
******
*****
****
***
**
*
*
**
***
****
*****
******
Comment