*/
*Copyright (c) 2014, 烟台大学计算机学院
*All rights reserved.
*文件名称:week7-project4.cpp
*作者:于凯
*完成日期:2014年 10 月23日
*版本号:v1.0
*
*/
#include <iostream>
using namespace std;
int main()
{
int i,t;
for(i=0; i<6; i++)
{
for(t=1; t<=6; t++)
{
if(t>=6-i)
cout<<"*";
else
cout<<" ";
}
cout<<endl;
}
}
运行结果: