scanf("%c", &opt1);
That scans in your character but leaves the newline character in your buffer, which is gladly accepted as a character for the next input. Cprogramming.com FAQ > How do I get a...