CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #707 #709 →

#708. Pattern: Pyramid (o)

You are given n. Print the **Pyramid (o)** pattern of size n, like in the example. Be careful with spaces (spaces at the end of a line do not matter). ### Input One integer n (2 ≤ n ≤ 9). ### Output The pattern.

Examples

Input
8
Output
       o
      ooo
     ooooo
    ooooooo
   ooooooooo
  ooooooooooo
 ooooooooooooo
ooooooooooooooo
Input
9
Output
        o
       ooo
      ooooo
     ooooooo
    ooooooooo
   ooooooooooo
  ooooooooooooo
 ooooooooooooooo
ooooooooooooooooo

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!