วันอังคารที่ 16 กันยายน พ.ศ. 2557

The area of a rectangle ^^

Hello! My lovely Students :)

This for recheck about your program :) Calculates the area of a rectangle.

Flowcharts



Code
namespace WindowsFormsApplication1
{
     public partial class Form1 : Form
     {
          public Form1()
          {
               InitializeComponent();
          }
          private void button1_Click(object sender, EventArgs e)
          {   
               int width, length, area;
               width = int.Parse(textBox1.Text);
               length = int.Parse(textBox2.Text);
               area = width * length;
               textBox3.Text = area.ToString("##,###.##");
          }
     }
}

(: It is on your sheet (p.68) if you read your sheet!! Please attention and Take care :)


ไม่มีความคิดเห็น:

แสดงความคิดเห็น