Sorry, still new to programming! Is it possible to have different types of variables in a for loop? In my example I'm wanting to use an int to represent the number and a char to represent the alphabet but I get many errors :/ I was hoping to get; " #1 in the alphabet is letter: a" " #2 in the alphabet is letter: b" etc ...
Thanks!
for (int i{ 1 }, char alphabet{ 'a' }; int >= 26; i++, alphabet++ )
{
cout << "# " << i << " in the alphabet is letter: " << alphabet << endl;
}