is it possible to have a loop that increments one letter?

for example

x='a';
while (x < 'zzzzzzz')
{
//do something to increment a to b
}

once a gets to z it becomes aa then ab and ac and so on

is it possible?