Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
32
#include <iostream> #include <iomanip> using namespace std; int main() { int a; cin >> a; for (int i = 1; i <= a; i++) { for (int j = a; j >= 1; j--) { if (a-i>=j) { cout << "*"; } else { cout << " "; } } cout << endl; } cout << "\n\n"; return 0; }
run
|
edit
|
history
|
help
0
Default constructor - deleted
class with unique_ptr to vector
iota_30-Seconds-of-C++
Rounding in C++
Generic EventProvider
c++ eval - double numbers v1.0
make_integer_sequence
Type deduction in VC++
enable_if::type
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?