摘要: #include <iostream> using namespace std; #include <cmath> int main() { int x = 0; cout << "请输入一个正整数:" << endl; cin >> x; int m = x; int z = x; for (in 阅读全文
posted @ 2020-03-28 08:44 木屋小丑 阅读(1198) 评论(0) 推荐(0)
摘要: #include <iostream>using namespace std;int main() { for (int i = 1; i < 5; i++) { for (int j = 0; j < 2 * i - 1; j++) { cout << "*"; }cout << endl; } 阅读全文
posted @ 2020-03-28 08:40 木屋小丑 阅读(3534) 评论(0) 推荐(0)