I created small code in C to test something. I thought that if i write 0 I will receive output ABC. But I cannot leave the loop. Please help me. Thank you.
#include<stdio.h>
#include<stdlib.h>
int main()
{
int x;
while(1)
{
printf("Enter number\n");
scanf("%d",&x);
if(x=0)
goto stop;
}
stop:
printf("ABC");
return 0;
}