08-29-2022, 10:49 PM
(08-27-2022, 12:28 AM)TempodiBasic Wrote: here a fine hystorical point of view about sprider language fpr each year till 2021
https://www.youtube.com/watch?v=qogEJSNZTPA
Very interesting, but something is wrong here! It's missing Modula 2, the language that was seen as the successor to Fortran from the mid-1980s. But apparently nobody was found who converted the entire library from Fortran to Modula - the easier way was chosen: Fortran was adapted to the new requirements.
And HTML is not a programming language, but a page description language.
Modula 2 example:
Code: (Select All)
(*Modula 2 *)
MODULE Fakultaet;
FROM InOut IMPORT ReadCard, WriteLn, WriteString, WriteCard;
VAR Zaehler, Eingabe, Fakultaet: CARDINAL;
BEGIN (*Beginn des Hauptprogramms*)
WriteString("Brechnung der Fakultät. - Geben Sie eine Zahl ein: ");
ReadCard(Eingabe);
WriteLn;
Fakultaet:=1; (*Initialisieren*)
FOR Zaehler:=1 TO Eingabe DO
Fakultaet:=Fakultaet * Zaehler;
END; (*Ende Hauptprogramm*)
WriteCard(Fakultaet, 5);
End Fakultaet.