C++菱形打印

#include<iostream> using namespace std; int main() { cout << "Please enter the side length of the diamond:"; int n; cin >> n; for (int i=0; i<n; i++) // 分爲上半層打印和下半層打印,首先打印上半層,外部
相關文章
相關標籤/搜索