#include int main(){ char c; while(1) { scanf("%c",&c); if(c=='e' || c=='E') { printf("\nEntered the required character e or E \n"); break; // coming out of the loop } printf("%c",c); } return 0; }