Can any one say why the break state does not work.
#include<stdio.h>
#include <stdlib.h>
int main()
{
int n;
loop:
scanf("%d",&n);
if(n!=42){
printf("%d",n);
goto loop;}
else
{
break;
}
return 0;
}
this is my code.