# If Else Examples- Basic

To find the largest of Two numbers

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1706732431602/d5ab9774-2c1c-437d-b395-d84d44b4faa6.png align="center")

**Output**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1706732545651/6ff7fe42-fa8c-478b-afea-74cfbec4db68.png align="center")

**Odd or Even**

![Even Or Odd](https://cdn.hashnode.com/res/hashnode/image/upload/v1706732654524/f12ea9ea-8dd9-4fd0-afb2-a1b9ba84bae5.png align="center")

**Output**

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1706732688437/85390168-4188-4f0b-88b8-21851cb47fc1.png align="center")
