neuerlehrplan:klasse10:algorithmusbegriff
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| neuerlehrplan:klasse10:algorithmusbegriff [2025/05/15 10:36] – [Beispiel: "Hallo Welt!"-Programm mit Assembler] lutz | neuerlehrplan:klasse10:algorithmusbegriff [2025/05/15 10:46] (aktuell) – [Beispiel: "Hallo Welt!"-Programm in Python] lutz | ||
|---|---|---|---|
| Zeile 60: | Zeile 60: | ||
| * Bei Interpretersprachen wird das Programm direkt mit dem Interpreter aufgerufen und dadurch ausgeführt. | * Bei Interpretersprachen wird das Programm direkt mit dem Interpreter aufgerufen und dadurch ausgeführt. | ||
| - | ====Beispiel: | + | ====Beispiel: |
| <code asm hallo.asm> | <code asm hallo.asm> | ||
| Zeile 102: | Zeile 102: | ||
| Hello, world! | Hello, world! | ||
| </ | </ | ||
| + | |||
| + | ====Beispiel: | ||
| + | |||
| + | <code c hallo.c> | ||
| + | #include < | ||
| + | |||
| + | int main() | ||
| + | { | ||
| + | printf(" | ||
| + | |||
| + | return 0; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Programm compilieren: | ||
| + | |||
| + | < | ||
| + | gcc hallo.c -o hallo | ||
| + | </ | ||
| + | |||
| + | Programm ausführen: | ||
| + | |||
| + | < | ||
| + | ./hallo | ||
| + | </ | ||
| + | |||
| + | Ausgabe: | ||
| + | < | ||
| + | Hello, world! | ||
| + | </ | ||
| + | |||
| + | ====Beispiel: | ||
| + | |||
| + | <code python hallo.py> | ||
| + | print (" | ||
| + | </ | ||
| + | |||
| + | Programm ausführen: | ||
| + | |||
| + | < | ||
| + | python hallo.py | ||
| + | </ | ||
| + | |||
| + | Ausgabe: | ||
| + | < | ||
| + | Hello, world! | ||
| + | </ | ||
| + | |||
neuerlehrplan/klasse10/algorithmusbegriff.1747298195.txt.gz · Zuletzt geändert: von lutz
