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
MCM
СПКИ АП КЭП 3
srednie
Goooood
always_late
773. Sliding Puzzle
obracanie tablicy
12hours Clock c++
Let's Go!
Cuantos dedos