Skip to content

Commit bebddff

Browse files
committed
Decision Making Code Update
1 parent d05acac commit bebddff

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,42 @@ Decision Making in programming is similar to decision-making in real life. In pr
425425

426426
Note : Proper Code is given in the file [decision.java](https://github.com/ackwolver335/Java-Coder/blob/main/decision1.java) Click to go on it.
427427

428+
### Here are some code examples of Decision Making Statements :
429+
430+
**If Statements**
431+
432+
```
433+
class Class_name{
434+
public static void main(String[] args){
435+
436+
// Type 1
437+
if(condition){
438+
// code here
439+
}
440+
441+
// Type 2
442+
if(condition1){
443+
// code here
444+
}
445+
else{ // another condition here
446+
// opposite code block here
447+
}
448+
449+
// Type 3
450+
if(first_condition){
451+
// code here
452+
}
453+
else if(second_condition){
454+
// code here
455+
}
456+
else{
457+
// opposite condition code here
458+
}
459+
460+
}
461+
}
462+
```
463+
428464
### Social Media Links :
429465

430466
- [Instagram Page](https://www.instagram.com/coding.needs/)

0 commit comments

Comments
 (0)