/* 0704.c: Conditional loop */
#include <stdio.h>
main()
{
int c;
printf("Enter a character:\n(enter x to exit)\n");
for ( c=' '; c != 'x'; ) {
c = getc(stdin);
putchar(c);
}
printf("\nOut of the for loop. Bye!\n");
return 0;
}
#include <stdio.h>
main()
{
int c;
printf("Enter a character:\n(enter x to exit)\n");
for ( c=' '; c != 'x'; ) {
c = getc(stdin);
putchar(c);
}
printf("\nOut of the for loop. Bye!\n");
return 0;
}