Pattern Printing
Pattern Printing
```
#include <iostream>
int main() {
int n;
cin >> n;
return 0;
```
*Output:*
```
**
***
****
*****
```
```
#include <iostream>
int main() {
int n;
cin >> n;
} else {
return 0;
```
*Output:*
```
**
* *
* *
*****
```
```
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
return 0;
```
*Output:*
```
*****
****
***
**
```
*Pattern 4: Diamond*
```
#include <iostream>
int main() {
int n;
cin >> n;
return 0;
```
*Output:*
```
**
***
****
*****
****
***
**
```
#include <iostream>
int main() {
int n;
cin >> n;
if (k == 0 || k == i || i == n - 1) {
} else {
if (k == 0 || k == i || i == 0) {
} else {
return 0;
```
*Output:*
```
```