arrow_forward
همه ارسالها
جزئیات ارسال کد#347
برای پسندیدن وارد شوید
1#include <bits/stdc++.h>
2
3using namespace std;
4
5int main() {
6 ios::sync_with_stdio(0);
7 cin.tie(0);
8
9 int n;
10 cin >> n;
11
12 for (int i = 1; i <= n; ++i) {
13 for (int j = 0; j < i; ++j) {
14 cout << "*";
15 }
16 cout << "\n";
17 }
18}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8