/*
* Copyright (c) 2013, 烟台大学计算机学院
* All rights reserved.
* 作 者: 沈远宏
* 完成日期:2013 年10月20日
* 版 本 号:v1.0
* 问题描述:计算函数的值。
*/ #include <iostream>
using namespace std;
int main()
{
int i,j,h,f;
for(i=0;i<6;++i)
{
for(j=0;j<i+1;++j)
cout<<" ";
for(h=0;h<11-2*i;++h)
cout<<"*";
for(f=0;f<i+1;++f)
cout<<" ";
cout<<endl;
}
cout<<endl;
return 0;
}
运行结果: