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
fun
Fast sine to fill array (sin/cos pair)
inherited
constmsvc
Use std::is_base_of to subset STL container contents.
ntohl
MSVC ignoring unknown attributes
Generic EventProvider
hangman
seh exception in constructor memory leak