arrow_forward
همه ارسالها
جزئیات ارسال کد#844
برای پسندیدن وارد شوید
1
2#include <iostream>
3
4using namespace std;
5int main()
6{
7 int n;
8 cin >> n;
9
10 int fasele;
11 fasele = 0;
12
13 while (n){
14 int q;
15 q = 0;
16 while (fasele > q){
17 cout << " ";
18 q++;
19
20 }
21
22 int star;
23 star = n;
24
25 while (star > 0){
26 cout << "*";
27 star--;
28 }
29
30
31
32 cout << "\n";
33 n--;
34 fasele++;
35
36 }
37
38
39 return 0;
40
41}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8