Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Making pyramid using nested loop 1/2
//g++ 5.4.0 #include <iostream> using namespace std; int main() { int rows=5,space; for(int a=1,b=0;a<=rows;++a,b=0){ for(space=1;space<=rows-a;++space) { cout<<" "; } while(b!=2*a-1){ cout<<"*"; ++b; } cout <<endl; } return 0; }
run
|
edit
|
history
|
help
0
ThreadPool
Parenthesis checker
insertion_sort
Bez królików
Dar
Kth Smallest Element (with extra space)
Using C's sprinf() Function to Format Output String
segmentedSieveR
string iteration performance
google