Programowanie na kalkulatorze CASIO fx-9860 - Instytut Matematyki ...
Programowanie na kalkulatorze CASIO fx-9860 - Instytut Matematyki ...
Programowanie na kalkulatorze CASIO fx-9860 - Instytut Matematyki ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Basic dla <strong>CASIO</strong> <strong>fx</strong>-<strong>9860</strong><br />
GoTo-Lbl<br />
Lbl, If-Then<br />
Then-Else-IfEnd<br />
Zadanie 3<br />
Napisz program obliczający <strong>na</strong>jwiększy wspólny dzielnik dwóch liczb <strong>na</strong>turalnych.<br />
A-B → A<br />
If A>B<br />
B-A → B<br />
?→A<br />
?→B<br />
If A≠B<br />
A<br />
Stop<br />
"Program oblicza<br />
NWD(A,B)"<br />
"Podaj liczbe A:"?A<br />
"Podaj liczbe B:"?B<br />
Lbl 1<br />
If A≠B<br />
Then<br />
If A>B<br />
Then<br />
A-B→A<br />
GoTo 1<br />
Else<br />
B-A→B<br />
GoTo 1<br />
IfEnd<br />
Else<br />
"NWD(A,B) ="<br />
A<br />
IfEnd