#include <iostream>
using namespace std;

int main() {
    char ch = 'A';        // to initiallise the loop 
    
    while (ch<= 'Z'){      // loop ending 
         
        cout<<ch<<"      "<<(int)ch<<endl;    // printing ascii values using typcasting 
        ch++;      // increment for loop 
        
    }
   
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: