#include
using namespace std;
int main()
{
int N;
char letters[] = "abcdefghijklmnopqrstuvwxyz";
while (1)
{
cout << "Enter N:";<br> cin >> N;
if (N < 1 || N > 26)
{
cout << "Invalid number " << N << "\n";<br> }
else
{
int i;
for (i = 0; i < N; i++)
{
cout << letters[N-i-1];<br> }
cout << "\n";<br> }
}
return 0;
}