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
12345678910111213141516#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(); }
Post A Comment:
0 comments: