File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
755756graph 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:**
764766The if...else statement is used to execute a block of code if a specified condition is true, otherwise another block of code.
765767
You can’t perform that action at this time.
0 commit comments