Run ID:154987
提交时间:2026-05-31 11:52:15
#include <iostream> using namespace std; int main() { // 1. 顺序输出 26 个小写字母 a ~ z for (char c = 'a'; c <= 'z'; c++) { cout << c << " "; } cout << endl; // 换行 // 2. 逆序输出 26 个大写字母 Z ~ A for (char c = 'Z'; c >= 'A'; c--) { cout << c << " "; } cout << endl; return 0; }