Guys, Im in desperately need of help, and I need the whole program to be written, as I dont understand anythuing in pascal haha.
Thanks for any help, I really appreciate it!
By the way, this is also my first post here, yay :D
satasonic
0
Newbie Poster
Recommended Answers
Jump to PostHi satasonic
In pascal there are two functions like Low() and High()Program LowAndHigh; Uses Crt; Var MyArray:Array[0..124]Of Byte; Begin ClrScr; {min value:Low function} WriteLn('Minimum value of MyArray: ',Low(MyArray)); {max value:High function} WriteLn('Maximum value of MyArray: ',High(MyArray)); ReadLn; End. {Written by FlamingClaw}
Jump to PostI wonder, High and Low return the highest and lowest array index iirc. Isn't he looking for Min and Max ?
If you try my code (just copy and paste) ,you will see the results low as 0 and high as 124,the type of byte's range is 0..255 :D
But …
All 8 Replies
FlamingClaw
98
Posting Pro
satasonic
0
Newbie Poster
FlamingClaw
98
Posting Pro
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
FlamingClaw
98
Posting Pro
TeejMonster
-1
Newbie Poster
Tom Barnett
0
Newbie Poster
JameB
66
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.