Looping in C Programming Language

 Looping in C Programming Language Use: When we want to perform specific task repeatedly then we can use looping. In C Language there are three type of loop: For Loop While Loop Do while Loop Nested for Loop Each Loop statement requires three things: Initialization  Test Condition Increment/Decrement Operation 1. For Loop: For Loop is a repetition control structure which allow us to write a loop that is executed a specific number of time. Syntax:               for( initialization ; test condition; increment/decrement operation)                 {                    ------                    body of for loop;                    ------               } 2. While Loop: While Loop is use to per to p...

Steps for Solving Problem/Program in C Programming Language

 

STEPS FOR SOLVING PROBLEM/PROGRAM IN C PROGRAMMING LANGUAGE


Step 1: Understand the program/problem.

Step 2: Think about program/problem (Analysis).

Step 3: Do rough work using models like Algorithm and Flow chart.

Step 4: Write set of instruction in Editor.

Step 5: Test our program and check errors are occurred or not.

Step 6: If errors are occurred then solve those errors.

Step 7: If errors are not occurred then execute the program.

Step 8: Check the Output.


Comments

Popular posts from this blog

Data Types in C Program

Different Modules to solve the program/problem

Operators in C Program