I can't get my program to loop properly. Here's the code:
#include <stdio.h>
main()
{
char a;
printf("Enter a letter\n");
for ( ; ; )
scanf("%c",&a);
printf("\nThe decimal value of the character you entered is %d\n\n",a);
}
What am I doing wrong?