Break (Loop,Switch Case)
A break keyword is used to forcefully stop a loop. For
example, you have set a loop to run 100 times and your requirement got
fulfilled after 10 iterations then the loop will run 90 times which leads
wastage of time and resource. So the break statement is used to stop the loop
when need got complete.
Example: Write a program to input and sum ten numbers. Input
will stop immediately when a user-entered number is dividing by 11 then the
loop must be stopped.
#include<stdio.h>
#include<conio.h>
/*##########################
Girfa Student Help
Break Statement Example
##########################*/