I need to create a program that converts a Character to Ascii, it is easy enough but I am having trouble with loops.
If the person inputs the # key the program must close, I can't seem to figure out how to do this
I assumed that would work but it did notCode:#include <stdio.h> int main() { int x; char letter; printf("Enter a Letter\n"); printf("Press '#' at any time to quit\n"); while("char != #") scanf("%c", &letter); printf("Ascii Value= %d", letter); }