One of the most important features in a programming language is decision -making structures. Thanks to these structures, we can decide where the result will reach in our application. The if-Else structure, which is almost the same in programming languages such as C# and Java,…