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

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article 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.

Solved Programs