Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
using namespace std;
4
5
void 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
14
int main(){
15
int r;
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected