第7周项目4--星号图(a)

来源:互联网 发布:moshou7.0 知乎 编辑:程序博客网 时间:2024/04/26 21:15
/*  * Copyright (c) 2013, 烟台大学计算机学院 * All rights reserved. * 作    者:沈远宏 * 完成日期:2013 年10月20日 * 版 本 号:v1.0 * 问题描述:星号图*/#include <iostream>using namespace std;int main(){int i,j;for(i=0;i<6;++i){for(j=0;j<11-2*i;++j){    cout<<"*";}cout<<endl;}cout<<endl;return 0;}
运行结果: