#include <iostream>
#include <string>
int main()
{
std::string a="";
std::cout<<"Podaj dwie litery: ";
while (std::getline(std::cin, a) && a != "stop")
{
unsigned int start=0, stop=0;
switch (a.length())
{
case 3: start = (int)a[0]; stop = (int)a[2]; break;
case 2: start = (int)a[0]; stop = (int)a[1]; break;
case 1: start = stop = (int)a[0]; break;
}
if (start > stop)
start ^= stop ^= start ^= stop;
for (int i = start; i <= stop; i++)
std::cout << char(i);
std::cout << std::endl;
std::cout<<"Podaj dwie litery: ";
}
return 0;
}