OI-Codes/FZOI/输出字母表.cpp
2024-06-26 22:14:00 +08:00

23 lines
307 B
C++

#include <iostream>
using namespace std;
int main()
{
for(int i = 1; i <= 26; ++ i)
{
cout << (char)(65 + i - 1) << " ";
if(i % 6 == 0)
{
cout << endl ;
}
}
cout << endl ;
for(int i = 26; i >= 1; -- i)
{
cout << (char)(97 + i - 1) << " ";
if(i % 6 == 0)
{
cout << endl ;
}
}
}