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