arrow_forward
همه ارسالها
جزئیات ارسال کد#625
برای پسندیدن وارد شوید
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 for (; n > a; a++)
14 {
15 cout << "*";
16 }
17 cout << "\n";
18
19 a = 0;
20 for (int b = n - 2, c = 0; b > c; b--)
21 {
22 cout << "*";
23 for (; n - 2 > a; a++)
24 cout << " ";
25 a = 0;
26 cout << "*";
27 cout << "\n";
28 }
29
30 a = 0;
31 for (;n > a;a++)
32 {
33 cout << "*";
34 }
35
36
37
38
39 return 0;
40}
کد ارسالشده برای داوری خودکار هاتکدز
UTF-8