#include <stdio.h>
int main()
{
int k , alph ;
for( k=1; k< 40; k++)
{
alph = getchar() ;
if( alph == 10 )
// meaning that getchar usually follows by getting
a char with getting second char whic is a line feed ( 10).
alph = getchar();
// then wait again
printf("k = %d alph = %d \n",
k, alph );
}
return 0 ;
}
/****** note that getchar always stops the running program and waits
for a keypress *****/
Return to previous page.