arrow_forward
همه ارسالها
جزئیات ارسال کد#623
برای پسندیدن وارد شوید
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 = n;
13 int c = 0;
14 for (; n > 0; n--)
15 {
16
17 for (int d = 0; c > d; d++) {
18 cout << " ";
19 }
20 c++;
21
22 for (int b = 0; n > b; b++)
23 {
24 cout << "*";
25 }
26 cout << "\n";
27
28 }
29 return 0;
30}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8