Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
1
Please
log in
to post a comment.
C++ Solar eclipse program(Shoushi integrated) 1644 - 1785 from Ideone( Date: August 14, 2014 )
Shorting in one line using class members std and boost bind
ThreadPool
map::swap()_30-Seconds-of-C++
Goooood
virtual function
005#
Arithemetic operators
https://rextester.com/TXKE53925
remove_copy_if-30-Seconds-of-C++
Please log in to post a comment.