I am having a problem with the creating the following program:
Create a program that will read in 2 letters, and then print the character half-way between the two. e.g. given A and G, it will print D. If there are an even number of characters between, then either of the 2 middle ones is OK
I don't understand how I am suppose to have the program print out the character half-way between the two.
Here is what I have.
Any help is greatly appreciated.Code:int main() { char ch, ch1, ch2; printf("Please enter in two characters.\n"); scanf("%c %c", &ch, &ch1);