[演算法笔记] 打印直角三角形 #include <iostream> using namespace std; void print_line ( int n) { for (int i = 1; i <= n; i++){ cout << '@' ; } cout << endl; } void print_triangle(int n) { for (int i = n; i >= 1; i--){ print_line(i); } }