Skip to content
Advertisement

How to Flip the triangle?

How to flip this triangle?

So i was making aritmethic sequance triangle. It was upside down. How do I turn it 180 degree?

for example:

1=1
1+2=3
1+2+3=6
etc...

my code:

JavaScript

Advertisement

Answer

You can do it for any n, by getting input from the user

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement