Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Making pyramid using nested loop 2/2
//g++ 5.4.0 #include <iostream> using namespace std; int main() { int a,b,c,space=10; for(a=0;a<7;a++){ for(b=0;b<space-a;b++){ cout<<" "; } for(c=0;c<2*a-1;c++){ cout<<"*"; } cout<<endl; } return 0; }
run
|
edit
|
history
|
help
2
star print1
Cotton Farm 0.0.1.0
My calculator
pi with cmath
PRIx64 on gcc
CodeChef P2 - FIZZA
Depth of Bin tree
Zscore
fcyyfc
Algoritm(prelucrare cifre)