#include <iostream> #include<cmath> #include<ctime> #include<string> #include <iomanip> #include <fstream> using namespace std; int main() { int firstLetter = 65; int count = 0; for (int i = 65; i <= 90; i++) { count++; if (count%5 == 0) cout << setw(3) << static_cast<char>(i) << endl; else cout << setw(3) << static_cast<char>(i); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter