I am getting this error in c. I was using the "break" statement in the else statement and get this error message "error: break statement, not within loop or switch."
#include <stdio.h>
void main()
{
int click;
scanf("%d",&click);
first_page:
if(click == 1)
{
printf("OK");
}
else
{
printf("\nInvalid");
goto first_page;
break;
}
}