Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
pyramid
#include<bits/stdc++.h> using namespace std; int main() { int i,j,no; cin>>no; for(i=1;i<=no;i++) { for(j=1;j<=2*no-1;j++) { if(j>=no-(i-1) and j<=no+(i-1)) {cout<<"*";} else{cout<<" ";} } cout<<endl; } return 0; }
run
|
edit
|
history
|
help
1
Please
log in
to post a comment.
cons1
Policy based smart pointer
variadic template
DeltaX campus recruitment
protected
kickstartd
Find the max and min number in array
hack qus
test
QuadRootPoint
Please log in to post a comment.