Code:
#include <stdio.h>
int main(void)
{
int in;
printf("Please enter an ascii number to convert: ");
scanf("%d\n", &in);
printf("You entered %d, the regular value is %c\n", in, in);
getchar();
getchar();
getchar();
getchar();
return 0;
}
The program is supposed to take the ascii number input and convert it to its regular character value. Example: inputting 90 would give you Z. Why do I have to enter 90 twice?, and why do I have to have so many "getchar()"'s to keep the window from closing before I can view the results? Thanks!
-=Allen=-