correggi quel frammento di codice

codice:
        do {
                char c;
                printf("Inserire un char\t");
                scanf("%c", &c);
                printf("%c\n", c);
        } while(c != 'Z');