于墨轩 • 1个月前
#include <iostream> using namespace std; int main() { for (int row = 1; row <= 5; ++row) { for (int col = 0; col < row; ++col) { cout << '%'; } cout << endl; } return 0; }
评论: