Skip to content

Commit

Permalink
Updated pattern.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anushkaa-02 authored Oct 10, 2021
1 parent 82c96d8 commit e74bc4b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions C_CPP/Algorithmic Approaches/Pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ There are several patterns in C language like star pattern, number patterns, and
* ### Pattern 1 [Pascal Triangle]:
![pascal](https://user-images.githubusercontent.com/87390353/135294713-6f11bdb1-34ad-47ec-9a5c-3181528fe377.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
int main()
{
Expand All @@ -36,7 +36,7 @@ int main()
* ### Pattern 2:
![num2](https://user-images.githubusercontent.com/87390353/135296627-9c64d253-916a-4651-95f9-00311d8675c3.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{int i,k,j;
Expand All @@ -61,7 +61,7 @@ if(j>=5-i&&j<=3+i)
* ### Pattern 3:
![num3](https://user-images.githubusercontent.com/87390353/135321692-e385113a-ad45-43ea-8cce-c382d0b3f234.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{
Expand All @@ -80,7 +80,7 @@ void main()
* ### Pattern 4:
![num4](https://user-images.githubusercontent.com/87390353/135322196-d67aacef-bcd9-4b3e-8f89-51850ec04251.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{
Expand All @@ -103,7 +103,7 @@ void main()
* ### Pattern 5:
![num5](https://user-images.githubusercontent.com/87390353/135322532-d08b19db-f807-4d91-bbd3-38a6ced676b8.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{int i,k,j;
Expand All @@ -128,7 +128,7 @@ if(j>=5-i&&j<=3+i)
* ### Pattern 1:
![pattern_5](https://user-images.githubusercontent.com/87390353/135323734-c5f9b102-a837-4181-a9ee-6414475cfdbf.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{int j,i;
Expand All @@ -147,7 +147,7 @@ void main()
* ### Pattern 2:
![pattern_4](https://user-images.githubusercontent.com/87390353/135324071-67c4495f-d85b-443c-bbb4-9c64fc86bfb4.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{
Expand All @@ -167,7 +167,7 @@ void main()
* ### Pattern 3:
![pattern_3](https://user-images.githubusercontent.com/87390353/135325654-645df4a3-4b7f-4100-920a-fd74f7b30a6a.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{int i,j,k=0;
Expand All @@ -189,7 +189,7 @@ void main()
* ### Pattern 4:
![pattern_2](https://user-images.githubusercontent.com/87390353/135326627-5d91cd14-1719-4d20-a148-d71e2b3522c5.jpg)
## 🖊Code:
```
```c
#include<stdio.h>
void main()
{
Expand All @@ -211,7 +211,7 @@ else
* ### Pattern 5:
![pattern_1](https://user-images.githubusercontent.com/87390353/135326959-c05ef3d9-7772-427d-a76d-21c686b628ba.jpg)
### 🖊Code:
```
```c
#include<stdio.h>
void main()
{
Expand Down

0 comments on commit e74bc4b

Please sign in to comment.