Skip to main content

Conditional Statements

Body

Conditional Statements



In this part you will learn:
1. C syntax
2. Conditional Statements
3. Operators

In this tutorial I will teach you about conditional statements in C. The first program will be a basic one with a most basic conditional statement. The second one is a grade calculator.
First Program. Basic Conditional Statements
Basic Step:
Open Dev C++ then File > new > source file and start writing the code below.

  1. &#13;<br />
  2. #include<stdio.h>&#13;<br />
  3. #include<conio.h></conio.h></stdio.h>

These two are the most common and basic header files. The first one stdio.h is used to grant us most of the basic functions of C like Input

Add new comment

File attachments