algorytmy silnia, ALGORYTMY


SILNIA

6! = 1 * 2 * 3 * 4 * 5 * 6

6! = 1 * 6 * 5 * 4 * 3 * 2

0! = 1

1! = 1

n! = (n-1)! * n

Specyfikacja:

dane: bla - liczba, dla której obliczamy silnię - n należy co N

licznik - zmienna pomocnicza, należy do N

Wynik:

wynik - silnia dla bla, należy do N

0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic
0x08 graphic

Start

czytaj bla

wynik:=1

bla<3

N

pisz wynik

STOP

T

bla:=bla-1

wynik:=wynik*bla



Wyszukiwarka

Podobne podstrony:
algorytmy iter silnia
Układy Napędowe oraz algorytmy sterowania w bioprotezach
5 Algorytmy
5 Algorytmy wyznaczania dyskretnej transformaty Fouriera (CPS)
Tętniak aorty brzusznej algorytm
Algorytmy rastrowe
Algorytmy genetyczne
Teorie algorytmow genetycznych prezentacja
Algorytmy tekstowe
Algorytmy i struktury danych Wykład 1 Reprezentacja informacji w komputerze
ALGORYTM EUKLIDESA
Algorytmy z przykladami tp 7 0

więcej podobnych podstron