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