Tuesday 24 February 2015

Handling Break Keyword in C++

#include<iostream.h>
#include<conio.h>
main()
{
int i=0,Br;
clrscr();
cout<<"\n Enter Value To Break The Loop";
cin>>Br;
for(i=0;i<100;i++)
{
cout<<"\n"<<i<<".. SSI Education";
if(i==Br)
{
break;
}
}
getch();
}

No comments:

Post a Comment