Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Example  



1.1  Remarks  







2 See also  





3 References  





4 External links  














ALGO






Português
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


ALGO
Paradigmprocedural, imperative, structured
FamilyALGOL
DeveloperBendix Corporation
First appeared1961; 63 years ago (1961)
Typing disciplinestatic, strong
ScopeLexical
Implementation languageAssembly
PlatformBendix G-15
Influenced by
ALGOL 58

ALGO is an algebraic programming language developed for the Bendix G-15 computer.[1]

ALGO was one of several programming languages inspired by the Preliminary Report on the International Algorithmic Language written in Zürich in 1958. This report underwent several modifications before becoming the Revised Report on which most ALGOL implementations are based. As a result, ALGO and other early ALGOL-related languages have a very different syntax from ALGOL 60.

Example[edit]

Here is the Trabb Pardo – Knuth algorithm in ALGO:

TITLE TRABB PARDO-KNUTH ALGORITHM
SUBSCript I,J
DATA A(11)
FORMAt FI(2DT), FLARGE(3D)
PROCEDURE F(T=Z)
BEGIN
Z=SQRT(ABS(T))+5*T^3
END
FOR I=0(1)10
A[I]=KEYBD
FOR J=0(1)10 BEGIN
I=J-10
F(A[I]=Y)
PRINT(FI)=I
IF Y > 400
GO TO LARGE
PRINT(FL)=Y
GO TO NEXT
LARGE: PRINT(FLARGE)=999
NEXT: CARR(1) END
2END

Remarks[edit]

  1. A title is the only type of comment allowed. Line numbers were inserted by the editor.
  2. Integer data type. The lower-case letters are not typos, but reflect the way in which ALGO code was presented in the original documentation.
  3. Only the size of an array can be specified, lower bound is always zero.
  4. The first format calls for a two-digit number followed by a tab, the second for a three digit number.
  5. The syntax of ALGO's procedure implementations is slightly different from that given in the Zurich report. Functions as defined by the Zürich report are not implemented.
  6. The syntax here is from the Zürich report and is also consistent with various 1950s-era autocodes.
  7. KEYBD reads a numeric value from the terminal.

See also[edit]

References[edit]

  1. ^ "The Bendix G-15 General Purpose Digital Computer System". Archived from the original on 4 December 2004. Retrieved 10 July 2020.

External links[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=ALGO&oldid=1231448846"

Category: 
ALGOL 58 dialect
Hidden categories: 
Articles with short description
Short description matches Wikidata
 



This page was last edited on 28 June 2024, at 09:58 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki