void main() { char op; do { printf("Hello "); printf("\nPress Y for continue and N for Exit"); scanf("%c",&op); }while(op == 'Y' || op == 'y'); }
[edit]Code block added - OriginalGriff[/edit]
char op; do { printf("Hello "); printf("\nPress Y for continue and N for Exit\t"); scanf("%c",&op); }while(op == 'y' || op == 'Y' ||op =='\n');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)