/* This is another simple input output demo program */

#include <stdio.h>
#include <conio.h>

void main()
{
char c;

   printf("Enter any characters, terminate program with X\n");

   do {
      c = getch();                     /* get a character */
      putchar(c);                  /* display the hit key */
   } while (c != 'X');

   printf("\nEnd of program.\n");
}
SINGLEIO.C
Κατεβάστε το πρόγραμμα στον υπολογιστή σας

BETTERIN.C