#include <iostream>
int main()
{
char input1 , input2 , temp;
std::cout << "Please enter two letters: ";
std::cin >> input1 >> input2; //you can also do something like:
//std::cout << "Please enter the first letter: ";
//std::cin >> input1;
//std::cout << "Please enter the second letter: ";
//std::cin >> input2;
std::cout << "The letters between " << input1 << " and " << input2 << " are:" << std::endl;
//the out put will be weird if you try and start with a lower case and end
//with an uppercase or vice versa
//either make them both lower or both upper
//alterative tell the user to make them both uper or lower.
for( temp = input1 + 1; temp < input2; ++temp )
{
std::cout << temp << ' ';
}
return(0);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CgljaGFyIGlucHV0MSAsIGlucHV0MiAsIHRlbXA7CgkKCXN0ZDo6Y291dCA8PCAiUGxlYXNlIGVudGVyIHR3byBsZXR0ZXJzOiAiOwoJc3RkOjpjaW4gPj4gaW5wdXQxID4+IGlucHV0MjsgLy95b3UgY2FuIGFsc28gZG8gc29tZXRoaW5nIGxpa2U6CgkvL3N0ZDo6Y291dCA8PCAiUGxlYXNlIGVudGVyIHRoZSBmaXJzdCBsZXR0ZXI6ICI7CgkvL3N0ZDo6Y2luID4+IGlucHV0MTsKCS8vc3RkOjpjb3V0IDw8ICJQbGVhc2UgZW50ZXIgdGhlIHNlY29uZCBsZXR0ZXI6ICI7CgkvL3N0ZDo6Y2luID4+IGlucHV0MjsKCQoJc3RkOjpjb3V0IDw8ICJUaGUgbGV0dGVycyBiZXR3ZWVuICIgPDwgaW5wdXQxIDw8ICIgYW5kICIgPDwgaW5wdXQyIDw8ICIgYXJlOiIgPDwgc3RkOjplbmRsOwoJCgkvL3RoZSBvdXQgcHV0IHdpbGwgYmUgd2VpcmQgaWYgeW91IHRyeSBhbmQgc3RhcnQgd2l0aCBhIGxvd2VyIGNhc2UgYW5kIGVuZAoJLy93aXRoIGFuIHVwcGVyY2FzZSBvciB2aWNlIHZlcnNhCgkvL2VpdGhlciBtYWtlIHRoZW0gYm90aCBsb3dlciBvciBib3RoIHVwcGVyCgkvL2FsdGVyYXRpdmUgdGVsbCB0aGUgdXNlciB0byBtYWtlIHRoZW0gYm90aCB1cGVyIG9yIGxvd2VyLgoJZm9yKCB0ZW1wID0gaW5wdXQxICsgMTsgdGVtcCA8IGlucHV0MjsgKyt0ZW1wICkKCXsKCQlzdGQ6OmNvdXQgPDwgdGVtcCA8PCAnICc7Cgl9CglyZXR1cm4oMCk7Cn0=