hello guys
program to illustrate the use of brake statement in for loop.
Share
hello guys
program to illustrate the use of brake statement in for loop.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
public static void main ()
{ int num = 0;
while ( num <= 100)
{ System.out.println ( value of variable);
if (num == 2)
break;
num++;
}
System.out.println ( "Out of while-loop");
}}