/ Published in: C++
Expand |
Embed | Plain Text
#include <iostream> using namespace std; int main() { cout << "Here's a list of the ASCII values of all the upper" << " case letters.\n"; char letter = 'A'; char zletter = 'Z'; while ( (int)letter <= (int)zletter){ cout << letter << " " << (int)letter << endl; (int)letter++; } //use this to stall the console output cin.ignore();cin.ignore(); }
You need to login to post a comment.
