#include <iostream>
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++的使用

转载于:https://my.oschina.net/WinkJie/blog/3023744

相关文章:

  • 2021-12-28
  • 2022-01-05
  • 2021-08-21
  • 2021-08-17
  • 2021-12-21
  • 2021-05-04
  • 2021-04-03
猜你喜欢
  • 2022-12-23
  • 2021-04-06
  • 2022-02-05
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案