Скачиваний:
0
Добавлен:
30.05.2020
Размер:
834 б
Скачать
//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
#include<math.h>
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{float S, L, P,r;
L=StrToFloat(Edit1->Text);
P=3.14;
r=L/6.28;
L=6.28*r;
S=P*r*r;
Memo1->Lines->Add("Площа круга=" + FloatToStrF(S,ffFixed,7,3));


}
//---------------------------------------------------------------------------
Соседние файлы в папке 3
  • #
    30.05.20203.9 Кб0Project1.bpr
  • #
    30.05.20201.07 Кб0Project1.cpp
  • #
    30.05.202017.82 Кб0Project1.obj
  • #
    30.05.2020876 б0Project1.res
  • #
    30.05.20202.03 Mб0Project1.tds
  • #
    30.05.2020834 б0Unit1.cpp
  • #
    30.05.202051 б0Unit1.ddp
  • #
    30.05.2020757 б1Unit1.dfm
  • #
    30.05.2020878 б0Unit1.h
  • #
    30.05.202038.96 Кб0Unit1.obj
  • #
    30.05.2020834 б0Unit1.~cpp