i used break statement,even then run time error is being thrown.
please share your code by saving it on ide.codingblocks.com