#include #include int main(void){ int j; char ch; ch = 'a'; /* initial value */ for(j=0; ch != 'q'; j++) { printf("pass: %d\n", j); ch = getchar(); } return 0;}