I want to take input in a loop without stopping its execution i.e.
`
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
int main()
{
char c;
while(1)
{
if((c=getch())=='y')
printf("yes\n") ;
printf("no\n") ;
}
return 0;
}
Now i want that "no" should be printed infinitely regardless of input and if i press y then yes should be printed.And then continuing from no again. Is this possible, any IDEA!