euclid algorithm
int Euclid(int a, int b)
{
int r;
while(b != 0)
{
r = a % b;
a = b;
b = r;
}
return a;
} function mcd($a,$b) {
while($b) list($a,$b)=array($b,$a%$b);
return $a;
}def MCD(a,b):
while b != 0:
a, b = b, a % b
return afunction gcd(a, b)
if b = 0
return a
else
return gcd(b, a mod b)
Also in PHP:
- avoir la date php
- How can I install php7.4 on Ubuntu 18.04?
- date format change in laravel blade
- Illuminate\Database\QueryException SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
- Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". when php is 7.4
- check if a string contains a word in php
- clear all cache laravel
- composer remove laravel
- datephp
- How to print an error to the console in PHP
- disable admin bar wordpress
- cache clear in laravel command
- db seeder artisan
- currency convertor in php
- add one day to given date in php
- check if string has a string php
- count letters in php
- SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
- connect mongodb with php
- Y-m-d H:
- find a string in another one phph
- dequeue recaptcha wordpress
- clear cach php artisan
- create new seeder laravel