I am haing a problem with the loop in my code.
It works fine until the second iteration through the loop.
When I make the loop into the code:
printf("Please enter the first word\n");
gets(str1);
printf("%s a\n", str1);
count1 = strlen(str1);
printf("Please enter the second word\n");
gets(str2);
printf("%s a\n", str2);
count2 = strlen(str2);
The code appears to pass right by the first printf() and gets(str1)
and goes directly to str2 printf() and gets.
What is causing this problem?
The first time into the loop it works correctly.