#include #include //program to get a character from the user and stops when 'x' is entered int main() { int i; char c; while(c != 'x') { printf("input a character\n"); c = getchar(); getchar(); } system("pause"); }