Difference between revisions of "Getchar.c"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(New page: #include <stdio.h> #define EOL 10 #define ESC 27 main() { char c = 'X'; while (c != ESC) { int cnt; cnt++; printf("iteration of test %d", cnt); c = getchar();...)
 
(No difference)

Latest revision as of 22:17, 24 May 2007

#include <stdio.h>
#define EOL 10
#define ESC 27
main() {
  char c = 'X';
  while (c != ESC) {
    int cnt;
    cnt++;
    printf("iteration of test %d", cnt);
    c = getchar();
  }
  return 0;
}