Cattle off network PAT training grounds - programmed together with Obama

Topic Address:

Meaning of the questions: None

1  / * *
 2  *
 3  * OF: Ycute
 . 4  * Time: 2019-11-14-21.29.07
 5  * intended topic title brief description: Tests for output
 . 6  * / 
. 7  
. 8  
. 9 #include <the iostream>
 10 #include < the cmath>
 . 11 #include <CString>
 12 is #include <algorithm>
 13 is #include <Vector>
 14  the using  namespace STD;
 15  
16  
. 17  int main () {
 18 is      int n-;
 . 19      char A;
 20 is      Scanf ( " % D " , &n);
21     getchar();
22     scanf("%c",&a);
23     for(int i=0;i<n;i++){
24         printf("%c",a);
25     }
26     printf("\n");
27     int ll=(int)(n*1.0/2+0.5);
28     for(int i=0;i<ll-2;i++){
29         printf("%c",a);
30         for(int j=0;j<n-2;j++){
31             printf(" ");
32         }
33         printf("%c\n",a,a);
34     }
35     for(int i=0;i<n;i++){
36         printf("%c",a);
37     }
38     printf("\n");
39 return 0;
40 }

 

Guess you like

Origin www.cnblogs.com/cutelife/p/11862775.html