If Else Statement in C

Prem Tiwari - - 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

About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , , ,