How can i display A to Z characters using while loop in c++
#include <iostream>
using namespace std;
int main()
{
char c = 'A'; // define variable c and set it to 'A'
while(c <= 'Z') // while c not equal to 'Z'
{
cout << c << " "; // print c
c++; // increment c
}
}