#include
using namespace std;

int main()
{
char input, alphabet = ‘A’;

cout << "输入最后一个大写字母: ";
cin >> input;

for(int i = 1; i <= (input-'A'+1); ++i)
{
    for(int j = 1; j <= i; ++j)
    {
        cout << alphabet << " ";
    }
    ++alphabet;

    cout << endl;
}
system("pause");
return 0;

}
c++队列

相关文章:

  • 2021-08-12
  • 2021-11-17
  • 2021-07-07
  • 2021-09-22
  • 2022-01-22
  • 2021-08-06
猜你喜欢
  • 2021-11-17
  • 2022-01-21
  • 2021-06-25
  • 2021-11-17
  • 2021-07-21
  • 2022-01-30
  • 2021-06-19
相关资源
相似解决方案