Code:#include <stdio.h>
int main (void)
{
int it = 0;
char ch;
printf ("type a char");
scanf ("%c", &ch);
while ( ch != 'z' )
{
++it;
printf ("type the next char");
scanf ("%c", &ch);
}
printf ("%d", it);
return 0;
}
why does the it print type next char twice??????