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
role of copy constructor
Test
F-Random Strings
Address Book
Conjuntos - Comparar cantidad de elementos únicos en 2 vectores
barai_1
Divide
doubly
Matrix rotation
Problema1