Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
triangle_ isosceles
#include <iostream> using namespace std; int main () { int n; cin >> n; for (int i=1; i<=n; i++) { for (int j=1; j<=n+i-1; j++) if (j<=n-i) cout << " "; else cout << "^"; cout << endl; } return 0; }
run
|
edit
|
history
|
help
0
strange builtin_offseof behavior
FindMissingBinom
pointer
P1
Bad code
volatile thread-safe object
A number is prime or not
ulib
Right view of a tree
input