while(num!=6) { printf("Keep entering numbers!\n"); scanf("%d",&num); } printf("That's the one I want!");