0
The area of a rectangle ^^
Posted by kru.fern
on
20:19
Hello! My lovely Students :)
This for recheck about your program :) Calculates the area of a rectangle.
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 :)
แสดงความคิดเห็น