My buttons are not displaying as i want(in a way it shows in calculator ) :   
//here
public class myform : Form
    {
        public myform()
        {
            //setting size of form
            this.Text = "Calculator";
            this.Height = 600;
            this.Width = 400;

            //creating buttons from 0-9
            Button[] b = new Button[10];
            int x = 0;
            int y = 0;
            string ch;
            for (int i = 0; i < b.Length; i++)
            {
                ch = Convert.ToString(i);
                x = 0;
                y = y + 50;
                b[i] = new Button();
                b[i].Height = 40;
                b[i].Width = 40;
                b[i].Text = ch;
                for (int j = 0; j < 3; j++)
                {
                    x = x + 50;
                    b[i].Location = new Point(x, y);
                }
            }

            for (int i = 0; i < b.Length; i++)
            {
                this.Controls.Add(b[i]);
            }
           
        }
    }
//here is the form class ,
//in which i am creating the object of myform class described above.
    public partial class Form1 : Form
    {
        public Form1()
        {
            
            InitializeComponent();
            myform mf = new myform();
            mf.Show();
        }
    }

  [1]: https://i.stack.imgur.com/Zat67.png