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