What you need is a loop. For example you can use a while loop like this:
while(input!=comp){}