1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 谁能用c语言编写出上述模式的杨辉三角

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/28 23:47:59

1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 谁能用c语言编写出上述模式的杨辉三角

//triangle.cpp
#include
#include
using namespace std;
int jiecheng(int x);
int zuhe(int x,int y,int z);
int main()
{
cout > n;
for(int i= 0;i1;k--)
cout