问题标题: 酷町堂:1644 输出一个沙漏形

0
0
已解决
王子健
王子健
初级天翼
初级天翼
#include<iostream>
using namespace std;
int main()
{

    cout<<"**************"<<endl;
     cout<<"************"<<endl;
      cout<<"**********"<<endl;
       cout<<"********"<<endl;
        cout<<"******"<<endl;
         cout<<"****"<<endl;
          cout<<"**"<<endl;
         cout<<"****"<<endl;
        cout<<"******"<<endl;
       cout<<"********"<<endl;
      cout<<"**********"<<endl;
      cout<<"************"<<endl;
    cout<<"**************"<<endl;

    return 0;
} 

 


0
已采纳
徐紫尘
徐紫尘
高级光能
高级光能
#include<iostream>
using namespace std;
int main(){
    输出<<"**************"<<换行;
    输出<<" ************"<<换行;
    输出<<"  **********"<<换行;
    输出<<"   ********"<<换行;
    输出<<"    ******"<<换行;
    输出<<"     **** "<<换行;
    输出<<"      ** "<<换行;
    输出<<"     **** "<<换行;
    输出<<"    ******"<<换行;
    输出<<"   ********"<<换行;
    输出<<"  **********"<<换行;
    输出<<" ************"<<换行;
    输出<<"**************"<<换行;

    return 0;
}

祝你AC

0
0
0
叶佳萱
叶佳萱
资深守护
资深守护

王子健同学,你的代码输出的是:

************

**********

********

******

****

**

****

******

********

**********

************

**************

主意空格
 

0
潘晨皓
潘晨皓
高级天翼
高级天翼

cout就行

不过很多

潘晨皓在2020-02-16 16:35:05追加了内容

0
欧阳语聪
欧阳语聪
资深守护
资深守护
cout<<"**************"<<endl;
cout<<" ************"<<endl;
cout<<"  **********"<<endl;
cout<<"   ********"<<endl;
cout<<"    ******"<<endl;
cout<<"     ****"<<endl;
cout<<"      **"<<endl;
cout<<"     ****"<<endl;
cout<<"    ******"<<endl;
cout<<"   ********"<<endl;
cout<<"  **********"<<endl;
cout<<" ************"<<endl;
cout<<"**************";

求采纳

0
潘晨皓
潘晨皓
高级天翼
高级天翼

cout<<"**************"<<endl;
    cout<<" "<<"************"<<endl;
    cout<<" "<<" "<<"**********"<<endl;
    cout<<" "<<" "<<" "<<"********"<<endl;
    cout<<" "<<" "<<" "<<" "<<"******"<<endl;
    cout<<" "<<" "<<" "<<" "<<" "<<"****"<<endl;
    cout<<" "<<" "<<" "<<" "<<" "<<" "<<"**"<<endl;
    cout<<" "<<" "<<" "<<" "<<" "<<"****"<<endl;
    cout<<" "<<" "<<" "<<" "<<"******"<<endl;
    cout<<" "<<" "<<" "<<"********"<<endl;
    cout<<" "<<" "<<"**********"<<endl;
    cout<<" "<<"************"<<endl;
    cout<<"**************"<<endl;

望采纳

我要回答