Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Equilateral triangle
#include <iostream> using namespace std; int main() { int a; cin >> a; for (int i = 1; i <= a; i++) { for (int j = 1; j <= a+i-1; j++) if (j <= a-i) cout << ' '; else cout << '^'; cout << endl; } }
run
|
edit
|
history
|
help
0
cache_node.cc
Guess Number
TempSpecial
binder
suffle array
permutation of 1 to n
C++ - Chained Methods
my template
next greater palindrome
Sequence point and array