第九周项目三:输出星号图补充
来源:互联网 发布:烟花算法的用处 编辑:程序博客网 时间:2024/06/06 02:49
#include <iostream>using namespace std;int main(){ int a,b; for(a=0;a<=6;a++) { for(b=0;b<=11;b++) { if(b<a||b>=11-a)cout<<" "; else cout<<"*"; } cout<<endl; } cout<<endl; return 0;}
#include <iostream>using namespace std;int main(){ int a,b,c=6; for(a=0;a<=6;a++) { for(b=0;b<=11;b++) { if(b>=6+a||b<=c)cout<<" "; else cout<<"*"; } c=c-1; cout<<endl; } cout<<endl; return 0;}<img src="http://img.blog.csdn.net/20141027172020002?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvbGl5aW5namllMDE=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" />
#include <iostream>using namespace std;int main(){ int a,b,c=6; for(a=0; a<=4; a++) { for(b=0; b<=11; b++) { if(b==a+5||b==c-1)cout<<"*"; else cout<<" "; } c=c-1; cout<<endl; } cout<<"***********"<<endl; return 0;}
0 0
- 第九周项目三:输出星号图补充
- 第九周项目三 输出星号图
- 第九周项目三:输出星号图
- 第九周项目三 输出星号图
- 第九周 项目三:输出星号图
- 第九周项目三输出星号图
- 第九周项目三输出星号图
- 第九周 项目三 输出星号图
- 第九周项目三 输出星号图
- 第九周 项目三 输出星号图
- 第九周项目三—输出星号图
- 第九周项目三输出星号图a
- 第九周项目三:输出星号图(c)(e)
- 第九周项目三——输出星号图
- 第九周项目三:输出星号图1
- 第九周项目三输出星号图b
- 第九周上机项目三(e)输出星号图
- 第九周项目三:输出星号图2
- Arcgis for Js实现graphiclayer的空间查询(续)
- Mina断线重连问题
- android 实用代码片段
- HDU 2.1.2 How Many prime numbers
- SQLite3性能优化
- 第九周项目三:输出星号图补充
- Eclipse中,点击某一单词,其他相同单词没有改变底色提示的问题
- curl_easy_perform 返回值说明
- แทงบอลออนไลน์กับเว็บที่มีความมั่นคง
- android 中全屏无标题设置 requestWindowFeature()的应用
- 虚函数
- 用记事本写的java程序引用jar文件
- unity3d中OnEnable和Awake的顺序问题
- java无锁算法CAS