Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $a=32;
- $b=12;
- print ("Największy wspólny podzielnik liczb $a i $b to: ");
- while ($a !=$b){
- if ($a<$b){
- $pom =$a;$a=$b;$b=$pom;
- }
- $a=$a-$b;
- }
- print ($a);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement