If Else Statement in C

If Else Statement in C Programming Language

In this tutorial, you will learn how to execute the If Else statement in C programming language. I have explained with some real time examples of If Else programs.

In the below diagram, If the “IF” condition satisfy, then IF statement will execute otherwise Else statement will execute and display the output of your program.

If Else Statment in C programming language

Below is the standard example of IF Else statement in C programming language:

Real time example:

Output will be:

After executing the above program, you will see the below output.

Also Read:
C Program: Find The Sum of Two Numbers
Prime Number Program in C Programming Language
Reverse Number Program in C
How to Compile and Run a C Programs

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Article Tags: , , , , ,