If Else Statement in C

| Last Updated: | In: C Programming Tutorial

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

Tags: , , , , ,