scanner by getchar()