arrow_forward
همه ارسالها
جزئیات ارسال کد#621
برای پسندیدن وارد شوید
1// meow.cpp : This file contains the 'main' function. Program execution begins and ends there.
2//
3
4#include <iostream>
5
6using namespace std;
7
8int main()
9{
10 int n;
11 cin >> n;
12 int a = 0;
13 int c = 1;
14 for (; n > a; n--) {
15
16 for (int b = n - 1; b > 0; b--) {
17 cout << " ";
18
19 }
20 for (int d = 0; c > d; d++) {
21 cout << "*";
22 }
23 c++;
24 cout << "\n";
25
26 }
27
28 return 0;
29}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8