941-21 guruh talabasi Ruzmetov Muzaffar
9-labarotoriya ishi
Mavzu:Visual C++ muhiti va unda dasturlash Visual C++ muhitida menyular va uskunalar paneli
Ishni bajarishdan maqsad: Visual C++ muhitida menyular va uskunalar bilan ishlashni o’rganish.
1-masala.
uchta tomon orqali Uchburchak yuzasini toppish
1-masala yechimi
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
double a=Convert::ToDouble(textBox1->Text);
double b=Convert::ToDouble(textBox2->Text);
double c=Convert::ToDouble(textBox3->Text);
double p=(a+b+c)/2;
double s=sqrt(p*(p-a)*(p-b)*(p-c));
textBox4->Text=Convert::ToString(s);
}
Do'stlaringiz bilan baham: |