Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     cout << setw(200) <<  " _______________________________________________ " << endl;
  9.     cout << setw(200) <<  " | CODE | CAPITA LETTER | CODE | CAPITA LETTER | " << endl;
  10.    
  11.     for (char i = 'A'; i <= 'Z'; i++) {
  12.         cout << setw(54) << " | " << setw(4) << i << " | " << setw(13) << static_cast<int>(i) << " | " << endl;
  13.     }
  14.     for (char i = 'a'; i <= 'z'; i++)
  15.         cout << setw(54) << " | " << setw(4) << i << " | " << setw(13) << static_cast<int>(i) << " | " << endl;
  16.    
  17.     cout << "______________________________" << endl;
  18.    
  19.     system("pause");
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement