Break Statement in C Programming
Source code for this Tutorial
#include <stdio.h> #include <stdlib.h> int main() { int counter = 1,counter2 = 1; while( counter2 <= 3 ){ counter = 1; while(counter <= 10){ printf("%d --> LearningLad Rocks\n",counter); if(counter == 5){ break; } counter++; } printf("-----------------------------------------\n"); counter2++; } printf("Programming is fun"); return 0; }