Pascal mania the morning, this time I will explain how to create a program to find area of a circle. in essence, this program explains that the formula for the area of the circle itself is (Area = π (pi) x radius (r) 2 = πr2). simply follow the steps below carefully.
How to make a circle formula:
- please open your program.
- select the file - new.
- and write the code as below.
- then select compile - compile or alt + f9 to make sure there are no errors in your program code.
- if there is no error, please select the run - run.
- congratulations you can make the program look for a wide circle of his own.
program luas_lingkaran;
uses crt;
var r ,l : real;
begin
clrscr;
writeln('MENCARI LUAS LINGKARAN');
writeln;
write('masukkan jari-jari :'); readln(r);
l:=r*3.14;
writeln('luas lingkaran : ',l:0:0);
readln;
end.
uses crt;
var r ,l : real;
begin
clrscr;
writeln('MENCARI LUAS LINGKARAN');
writeln;
write('masukkan jari-jari :'); readln(r);
l:=r*3.14;
writeln('luas lingkaran : ',l:0:0);
readln;
end.
* Greeting pascal mania and may be useful.
0 Response to "how to create a formula to find the area of a circle program in TURBO PASCAL 7.0"
Post a Comment