C-Programmierung

Kontrollstruktur While Beispiele

Kontrollstruktur While Flussdiagramm | | Kontrollstruktur While ggT

Endlosschleife:

while (1)
{
   ...
}

Logarithmus:

int a,b=0;

printf("input value: ");
scanf("%d", &a);

while (a/=2)
   b++;

printf("the logarithm is %d!\n", b);


Kontrollstruktur While Flussdiagramm | | Kontrollstruktur While ggT

Options: