Run DOS Remake
This remake keeps the original one-prompt circumference workflow.
Commands: ENTER to begin, positive numeric radius, Y/N replay, RESET to restart.
Another early geometric utility: read radius, apply a PI-based formula, and output the circumference in the same text-console style.
This remake keeps the original one-prompt circumference workflow.
Commands: ENTER to begin, positive numeric radius, Y/N replay, RESET to restart.
CIRC.PAS is a concise formula program centered on a practical scenario:
measuring the distance around a round swimming pool.
It reflects early comfort with constants, typed numeric variables, and formatted output in CRT-based Pascal programs.
1) PI Constant
const
Pi = 3.15159; 2) Radius Input
write('enter the radius of your round swimming pool-- ');
readln(Radius); 3) Circumference Output
Circum :=2 * Radius * Pi;
writeln('the distance around your pool is: ',Circum:1:2); program Circ;
uses crt;
const
Pi = 3.15159;
var
Circum,Radius : real;
begin
clrscr;
write('enter the radius of your round swimming pool-- ');
readln(Radius);
Circum :=2 * Radius * Pi;
writeln('the distance around your pool is: ',Circum:1:2);
end.