# Task 5

1. Using if else statement
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728199338693/4ddbe07b-e544-462a-aebb-bd3953403fa1.png align="center")

2. Reverse string
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728199439138/df697f5e-1a41-4c9e-bb59-68306d81b1d7.png align="center")

* Number Pattern
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728199497118/04edcdd3-9221-49f8-b5aa-b208ccf5eab9.png align="center")

* Star Pattern
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728199568187/a72d4c2d-f266-4200-aaf0-ebe750de9475.png align="center")

* Grading system
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728199718158/a4f61e71-2ebe-4807-815f-6f05950dffc1.png align="center")

Hotel tarrif

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728199995333/8ede9ddf-3e49-4093-8361-4ea349281617.png align="center")
