5 nested if in c with proper example

AlamgirHossain109 378 views 4 slides Sep 08, 2020
Slide 1
Slide 1 of 4
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4

About This Presentation

Structured Computer Programming with C-05 by Alamgir Hossain.
From this slide you will learn about nested-if in c with proper example.


Slide Content

Nested-if in C Programming Md. Alamgir Hossain Lecturer, Dept. of CSE, Prime University Mail: [email protected]

Nested-if in C/C++  Nested if statements means an if statement inside another if statement. Yes , both C and C++ allows us to nested if statements within if statements, i.e , we can place an if statement inside another if statement . Syntax: if (condition1) { // Executes when condition1 is true if (condition2) { // Executes when condition2 is true } }

Example of nested-if in C/C++

Thank You