Figura - X



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_XI_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
        int num, y;

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            num = int.Parse(textBox2.Text);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            y = num + 1;

            for (int r = 1; r <= num; r++, y--)
            {
                for (int c = 1, n = num; c <= r; c++, n--)
                {
                    textBox1.Text += ("  " + n.ToString());
                }
                for (int c = 1, p = y; c < r; c++, p++)
                {
                    textBox1.Text += ("  " + p.ToString());
                }
                textBox1.Text += "\r\n";

Figura - IX




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_X_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int num, n;
        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            num = int.Parse(textBox2.Text);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            n = num;
            for (int r = 1; r <= num; r++, n--)
            {
                for (int c = n; c <= num; c++)
                {
                    textBox1.Text += (c.ToString());
                }
                for (int c = r, j = num + 1; c > 1; c--, j++)
                {
                    textBox1.Text += (j.ToString());
                }
                textBox1.Text += "\r\n";
            }

Figura - VIII



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_IX_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            for (int r = 1, n = 1; r <= 12; r++, n = n + 2)
            {
                if (r % 2 == 0)
                {
                    for (int c = 1, p = 2; c <= n; c++, p = p + 2)
                    {
                        textBox1.Text += ("  " + p.ToString());
                    }
                }

Figura - VII




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_VIII_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int n = 4, p = 4, x = 1;
            for (int r = 1; r <= n; r++)
            {
                for (int c = 1; c <= r; c++, x++)
                {
                    textBox1.Text += (" " + x.ToString());
                }
                textBox1.Text += "\r\n";
            }

Figura - VI



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_VII_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        int num, q;

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            for (int r = 1, n = num; r <= num; r++, n--)
            {
                for (int c = r, p = n; c >= 1; c--, p++)
                {
                    textBox1.Text += (p.ToString());
                }
                for (int c = r, p = num - 1; c > 1; c--, p--)
                {
                    textBox1.Text += (p.ToString());
                }
                textBox1.Text += "\r\n";
            }

Figura - V




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_VI_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int num, n;

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            n = num;
            for (int r = 1; r <= num; r++, n--)
            {
                for (int c = 1; c <= n; c++)
                {
                    textBox1.Text += (c.ToString());
                }

Figura - IV



using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Triangulo_V_Forms
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        int num;
        private void button1_Click(object sender, EventArgs e)
        {
            for (int r = 1, m = 0; r <= num + 1; r++, m++)
            {
               
                for (int c = 1, n = m; c <= r; c++, n--)
                {
                    textBox1.Text += (n.ToString());
                }