Print Friendly and PDF
pyramid is a polyhedronA pyramid is a polyhedron for which the base is a polygon and all lateral faces are triangles. In this lesson, we'll only concern ourselves with pyramid whose lateral faces are congruent that is, they're the same size and shape.

pyramid is a polyhedron

A pyramid is a polyhedron for which the base is a polygon and all lateral faces are triangles. In this lesson, we'll only concern ourselves with pyramid whose lateral faces are congruent  that is, they're the same size and shape.  

 Example

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int j,z;
for(j=0;j<=10;j++)
{
for(int s=j;s<=10;s++)
cout<<" ";
for(z=0;z<=j*2;z++)
cout<<" *";
cout<<endl;
}
getch();
}
zubairsaif

Zubair saif

A passionate writer who loves to write on new technology and programming

Post A Comment:

0 comments: