Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Zählschleife, Iteration

Empfohlene Antworten

Veröffentlicht

Hallo,

kann mich schwach erinnern, dass die grafische Darstellung von Zählschleifen nicht standatisiert und deshalb in der Prüfung nicht erlaubt ist.

Welches Symbol bzw welche graf. Darstellung verwendet man hierfür?

die fußgesteuerte Schleife oder die kopfgesteuerte?

Danke vorab!

Könntest du die Frage präzisieren?

Aus meiner Sicht ist es KEIN Problem, eine Zählschleife in einem Programmablaufplan nach DIN 66001 darzustellen... Gleiches gilt für Struktogramme, Pseudocode und die Jackson-Methode. Wo liegt dein Problem?

LiGrü

Michael (der Struktogrammzeichner)

Hi,

unser AS Lehrer hat uns darauf hingewiesen, dass die konventionelle grafische Darstellung einer Zählschleife, ähnlich dieser Form,

------------------------------------

| |

| a bis 10 |

| ----------------------------|

| | |

| | Sequenz |

| | |

| ----------------------------|

| |

| |

------------------------------------

ebend nicht genormt ist.

Danke für die schnelle Antwort

sh**, Formatierung wird nicht angezeigt, na egal habe im Moment keine Grafik parat.......................

Ein Zählschleife setzt man in einem Struktugramm mit einer Iteration (Kopfgesteuerten Schleife) um!

Bsp: Ausgabe der Zahlen von 1-10!

------------------------------------------------------------------------

Variable: i

------------------------------------------------------------------------

setze i = 1

------------------------------------------------------------------------

solange i =< 10

--------------------------------------------------------------------

|Ausgabe i

|

---------------------------------------------------------------------

|Erhöhe i um 1

|

-------------------------------------------------------------------------

das kann man dann so umsetzen!

#include <stdio.h>

void main (void)

{

int i=1,

do{

printf("%d",i)

i++;

}while(i<=10);

getchar();

}

Oder:

int i=1;

for(i=1;i<=10,i++)

{

printf("%d",i);

}

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.