I have to convert some psuedocode into a C program.
Its a program which asks for an input from the keyboard, and prints whether it is a vowel or a consonant.
So far I have this:
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
main()
{
int letter;
printf("Enter a lower case letter\n");
scanf("%c", &letter);
}
I want know how to re-ask for the input if there is no input, and then when it is inputed then how to determine if it was a vowel or consonant.
Best find out what your system does, then, so you can adapt it.
1 2 3 4 5 6 7 8 9 10 11
#include <stdio.h>
main()
{
int letter;
printf("Enter a lower case letter\n");
scanf("%c", &letter);
printf("Numerical value of input was: %i", letter);
}