Home » Swift Nested if-else Statement

Swift Nested if-else Statement

by Online Tutorials Library

Swift Nested if-else Statement

Swift language facilitates you to use an if-else statement inside an if-else statement. Nested if-else statement can also be used in switch statement in Swift.

Example:

Output:

The largest number is 25  

You may also like