Tutorial references

c
c++
c#

Tutorial references

chapters

Loop Controller

Break

It is a keyword.

It is written in the loop or switch().

It is also called loop controller.

It is used to terminate a loop.

Example

#include <stdio.h>
#include <conio.h>
void main(){
 int i;
 clrscr();
 printf("\n We are using break keyword.");
 for(i=1;i<=10;i++){
 if(i==5){
  break;
 }
 else{
 printf("\n %d",i);
 }
 }
 getch();
}

Run program

Continue

It is a keyword.

It is only written in the loop.

It is also called loop controller.

It is used to jump iterations.

Example

#include <stdio.h>
#include <conio.h>
void main(){
 int i;
 clrscr();
 printf("\n We are using continue keyword.");
 for(i=1;i<=10;i++){
 if(i==5){
 continue;
 }
 else{
 printf("\n %d",i);
 }
 }
 getch();
}

Run program

About Us

This website(www.sabbla.com) is very useful for beginners and professional developers. Sabbla provides tutorial in simple language. It provides latest technology tutorial which very useful for developers.

See More...

Contact Us

+91 9971366710

+91 9717983128

info@sabbla.com

Buxar, Bihar, India, Pin No.- 802131

Services

Sabbla is providing free latest technology tutorials. All tutorials are free for beginner and professionals.


Terms of Use

sabbla.com is not responsible for any mistake. Users can inform to sabbla.com for any mistake. But sabbla.com always try for 0-0 mistake.

Privacy policy

Currently sabbla.com does not collect any data from users.

                   

copyright © 2017-2018