Skip to content

Commit ecb3ee1

Browse files
committed
If Flow Chart
1 parent 0692254 commit ecb3ee1

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.MD

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -748,18 +748,20 @@ console.log("The difference is: " + diff); // The difference is: 10
748748
```
749749
### Output
750750
```vbnet
751-
num is greater than 10
751+
The difference is: 10
752752
```
753753
### Flowchart
754+
754755
```mermaid
755756
graph LR
756-
A([Start]) --> B[num1 = 10;num2 = 20;diff = num1 - num2]
757-
B--> E{diff < 0 ?}
758-
E -->|true| F[diff = -diff]
759-
E -->|false| G[/'The difference is: ' + diff/]
760-
F --> G
761-
G --> H([End])
757+
A([Start]) --> B[num1 = -10]
758+
B--> C{num1 < 0?}
759+
C -->|true| D[num1 = -num1]
760+
C -->|false| E[/'num1 is '+num1/]
761+
D --> E
762+
E --> G([End])
762763
```
764+
763765
## **If...else Statement:**
764766
The if...else statement is used to execute a block of code if a specified condition is true, otherwise another block of code.
765767

0 commit comments

Comments
 (0)