c language tutorial

Learning LOOPS in C

Submitted by moazkhan on
In this part you will learn: 1. What is a loop 2. For LOOP 3. More on conditional statements 4. C syntax 5. Showing output In this tutorial I will teach you how to make a calculator using two different ways, firstly using the Conditional statement method and then using switch statement. What is a LOOP ? A loop is simply a statement which can execute a set of defined statements repetitively. You can write any valid C statement within a loop and you can also set how many times to execute that certain statement. There are three parts in a loop 1.

Calculator using Switch and Conditional Statements

Submitted by moazkhan on
Calculator using Switch and Conditional Statements In this part you will learn: 1. To make a calculator using Conditional statements 2. What is switch statement 3. To make a calculator using switch statment 4. C syntax 5. Showing output In this tutorial I will teach you how to make a calculator using two different ways, firstly using the Conditional statement method and then using switch statement. Using Conditional statments: Basic Step: Open Dev C++ then File > new > source file and start writing the code below.

Writing your first C program

Submitted by moazkhan on

Writing your first C program

In this part you will learn: 1. C syntax 2. Showing output 3. Tabs and new lines 4. Headers 5. Variables and data types In this tutorial I will teach you how to write your first c program. Writing your first C program: NOTE: Whenever I write something after // or in between /* */ it means I am writing comments. Comments are not read by the compiler they are just a way to write your own notes after some statement.