arrow_forward
همه ارسالها
جزئیات ارسال کد#859
برای پسندیدن وارد شوید
1#include <iostream>
2
3using namespace std;
4
5int main(){
6
7 int n;
8 cin >> n;
9 int x = 0;
10 int z = n-1;
11 for(int i = 0; i < n; i++){
12
13 for(int space = 0 ; space < z; space++){
14 cout << " ";
15 }
16
17 for(int j = 0 ; j <= x; j++){
18 cout << "*";
19 }
20
21 x++;
22 z--;
23 cout << "\n";
24 }
25
26 return 0;
27}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8