MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / pyramid

Function pyramid

C++/Homework/rightTriangleUsingFunction.cpp:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3using namespace std;
4
5void pyramid(int r){
6 for(int i=0;i<r;i++){
7 for(int j=0;j<i+1;j++){
8 cout<<"* ";
9 }
10 cout<<endl;
11 }
12}
13
14int main(){
15 int r;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected