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

Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer and a blogger by hobby.

Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.