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 Areas
{
public partial class Form1 : Form
{
int b = 0;
double d = 1.33;
double π = 3.1416;
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
private void button1_Click(object sender, EventArgs e)
{
b = Convert.ToInt32 (textBox1.Text );
if (radioButton1.Checked == true) label3.Text = Convert.ToString(b
*Convert.ToInt32 (textBox2.Text) / 2);
if (radioButton2.Checked == true) label3.Text = Convert.ToString(π *
Convert.ToInt32(textBox1.Text)* Convert.ToInt32(textBox1.Text));
if (radioButton3.Checked == true) label3.Text = Convert.ToString(d *π
* Convert.ToInt32(textBox1.Text) * Convert.ToInt32(textBox1.Text) *
Convert.ToInt32(textBox1.Text));
}
}
}