Here is my program.
When I compile I get error misplaced break
What I am doing wrong ?Code:#include<conio.h> #include<iostream.h> void main() { int i=1,total=0; clrscr(); if(i<10) { total=total+1; i++; if(i==5) break; } cout<<"total"; getch(); }