Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
half diamond or 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.
uuuu
Web Browser History
СПКИ АП КЭП 2
TwoANOVA
backtracking
Radix sort
Conjuntos - analizar la lógica
Średnia bez zera
Matrix spiral print
For Hello World
Please log in to post a comment.