任务实验6

源代码

include

using namespace std;

int main()
{
cout << " a b c d e f g h i j k l m n o p q r s t u v w x y z\n";

for (int i = 1; i <= 26; ++i)
{
cout << (i < 10 ? " " : "") << i;
for (int j = 0; j < 26; ++j)
{
char ch = 'A' + (i + j - 1) % 26;
cout << " " << ch;
}
cout << endl;
}
return 0;
}
image

posted @ 2026-10-22 14:59  d111kkk  阅读(2)  评论(0)    收藏  举报