Horje
break statement in c++ program Code Example
break statement in c++ program
/*Q;Design a program to print the employee IDs starting
from 1 until an Id occur who have resigned. IDs of
resigned persons are 7 and 10 .*/

#include<iostream>
using namespace std;
int main()
{
	int meet=0;
	for(int i=1;i<30;i++) 
		{
			if(i==7||i==10)
			break;
			else
				meet=1;
		cout<<"Employee ID:"<<i<<endl;
		}
	return 0;
}




Cpp

Related
error: use of parameter outside function body before ] token c++ Code Example error: use of parameter outside function body before ] token c++ Code Example
the question for me Code Example the question for me Code Example
if else c++ Code Example if else c++ Code Example
how to type a vertical stack program c++ Code Example how to type a vertical stack program c++ Code Example
how to compile with libstdc++ fedora Code Example how to compile with libstdc++ fedora Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10