I've wrote the following piece of code but i haven't quite got the while statement to terminate at the right place, i would appreciate any help, thanks. The aim was to get the sequence of characters entered to terminate by a full stop.
Code:#include <stdio.h> void main(void) { int ch; printf("Please enter a letter, terminated by a full stop? "); ch = getchar(); while (ch != '.'){ if (ch >= 'A' && ch <= 'Z') printf("true \n", ch); else printf("false\n"); } }