Basic computer course, C programming language, Education, Engineering Course, Engineering Courses, Maths Coaching, online computer coaching, PGDCA course coaching, programming course, school computer coaching, training, Uncategorized, Web Design course

Is Loop Useful in Programme? tccicomputercoaching.com

Loops are used to repeat a block of code. Being able to have your program repeatedly execute a block of code is one of the most basic but useful tasks in programming like ,C++ , Java ,Python, .Net etc.

Programming image

There are 3 sections of Loop:

  • Variable initialization.( e.g int x=0; )
  • condition( e.g while( x<=10) )
  • Variable increment or decrement ( x++ or x– or x=x+2 )

Types of Loop:

1. Entry Control Loop:

a. For Loop

for ( variable initialization; condition; variable update ) {

Code to execute while the condition is true

}

 

b. While Loop

variable initialization ;
while (condition)
{
 statements ;
 variable update;
}

2. Exit Control Loop:

Do – While Loop

variable initialization ;
Do
{         statements ;
          variable updates;

} while (condition);

To learn various concepts of Programming Language at TCCI.

Call us @ 98256 18292

Visit us @ http://tccicomputercoaching.com/programming-course/

 

Leave a comment