₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,999 members, 8,419,864 topics. Date: Thursday, 04 June 2026 at 04:42 AM

Toggle theme

Algorithm For Pascal Program - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingAlgorithm For Pascal Program (3713 Views)

1 Reply (Go Down)

Algorithm For Pascal Program by bobbyray(op): 2:20pm On Dec 12, 2011
Do you know the algorithm for simple pascal programm for calculating the surface area of a sphere?

please make it simple if you do. thanks
Re: Algorithm For Pascal Program by Fayimora(m): 10:26pm On Dec 12, 2011
The algorithm to calculate surface area has NOTHING to do with pascal. Have a quick read through this and you should be able to do your thing.
Link : http://en.wikipedia.org/wiki/Sphere#Surface_area_of_a_sphere
Re: Algorithm For Pascal Program by Mobinga: 9:11am On Dec 13, 2011
I hope this is not what they're assigning to Comp Sci students oh.  cry cry

https://upload.wikimedia.org/wikipedia/en/math/b/7/b/b7b326b6c8394786f8c373de98ceb161.png
Re: Algorithm For Pascal Program by bobbyray(op): 10:58am On Dec 13, 2011
@Mobinga, absoultely not, grin

@Fayimora, thanks but thats not exactly what i want. I am trying to run this program on a pascal compiler, it doesnt run, and i want to know what am doing wrong, that is why i said ", simple pascal program"
so if you do have a source code for this simple program, please drop it
Re: Algorithm For Pascal Program by Ogim: 2:39pm On Dec 15, 2011
Post the code, so that we can correct it for u. I'm a pascal programmer and using freepascal and lazarus ide. If u dont have a code, i can write this for u, for the formula above but i havent tested it, so i dont know if it will work,but try and see if it works.

Program formula;
var
A,r:integer;
begin
{get the radius}
readln(r);
A:=4*pi*power(r);
{display the result}
writeln(A);
{wait for key press before exiting}
readln;
end.
Re: Algorithm For Pascal Program by Beaf: 4:16pm On Dec 15, 2011
bobbyray:
Do you know the algorithm for simple pascal programm for calculating the surface area of a sphere?

please make it simple if you do. thanks
shocked shocked shocked shocked shocked shocked shocked shocked shocked shocked shocked shocked shocked

What?!!
Mods, ban this dude!!! . . .Like Forever! angry
1 Reply

PASCAL ProgramPascal Program For Matrix MultiplicationAlgorithm For Solving Systems Of Linear Equations234

Is There An Email To Sms Gateway Service From Airtel, Glo, Mtn Or Etisalat?I Want To Learn Programming. Which Language Should I Start With?Android Quiz App With Php And MYSQL Database