Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Excercise/모듈04/Exercise2/Unit_ch4_2.pas
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ implementation
{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
const
v: int64 = 6350000;
var
r:real;
a:int64;
begin
r := SQRT(SQR(6350000 + StrToint(Edit1.Text)) - SQR(6350000));
a := SQR(v + StrToInt64(Edit1.Text));
r := SQRT(a - SQR(v));
Edit2.Text := FloatToStr(r / 1000);



end;


Expand Down
2 changes: 1 addition & 1 deletion Excercise/모듈12/Exercise3/Unit_ch12_3.pas
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ procedure TForm1.Button1Click(Sender: TObject);
begin
Cnt := 0;
s := Edit1.Text;
for i := 0 to Length(s) do
for i := 1 to Length(s) do
if s[i] = '.' then
Cnt := Cnt + 1;
ShowMessage(InTtoStr(Cnt));
Expand Down