Volume of Cylinder


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 WindowsFormsApplication1
{
    public partial class VolumeSphere : Form
    {
        public VolumeSphere()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            double a = Convert.ToDouble(textBox1.Text);
            double b = Convert.ToDouble(textBox2.Text);
            double c = 3.14*a *a* b;
            textBox3.Text = c.ToString();
        }
    }
}




No comments:

Post a Comment

Techzmatrix