config root man

Current Path : /home/design/public_html/

Linux rs105.nsresponse.com 3.10.0-614.10.2.lve1.4.55.el7.x86_64 #1 SMP Tue Jun 20 08:59:12 EDT 2017 x86_64
Upload File :
Current File : /home/design/public_html/random3-rezultat.php

<?php
$ppi=0;
$pp=$suma_initiala;
// Aici se calculeaza pierderea. Pierderea se calculeaza doar odata.
for ($i2 = 0; $i2 <= 8; $i2++) {
	$ppi=$ppi+$pp;
	$pp=$pp*2;
}
	



echo "Sansa: 1 din ".$sansa."<br />Suma initiala: ".$suma_initiala."<br />Numar de meciuri: ".$numar_meciuri."<br /><br />";


$p=0; //pierdere
$i=1;
$total_castiguri=0; //profit total
$total_pierderi=0; //pierdere total
//$sss=0.2;
//$sansa=22;

while ($i<=$numar_meciuri) {
$r=mt_rand(1,$sansa);	

if ($r!=$sansa) {
	$ssi=0;
	$ss=$suma_initiala; //suma start
	$r2=mt_rand(0,8);
		
	
	// Aici se calculeaza suma investita
	for ($i2 = 0; $i2 <= $r2; $i2++) {
		$ssi=$ssi+$ss;
		$ss=$ss*2;
		}
		
	$ss=$ss/2;
	$c=$ss*3; // castig (fara profit)
	$p=$c-$ssi; // profit
	$r21=$r2+1;
	
	echo $i.". marcat in intervalul ".$r2."0-".$r21."0 ..... investit total: ".$ssi." ..... ultima investitie: ".$ss." ..... castig brut: ".$c." ..... Profit net: ".$p."<br />";
	$total_castiguri=$total_castiguri+$p;
	}

// Aici se afiseaza si se aduna pierderile.
if ($r==$sansa) {
	echo $i.". PIERDERE: ".$ppi."<br />";
	$total_pierderi=$total_pierderi+$ppi;
	}


$i++;
}
$total=$total_castiguri-$total_pierderi;
echo "<br /><br />TOTAL CASTIGURI: ".$total_castiguri."<br />TOTAL PIERDERI: ".$total_pierderi."<br /><br />PROFIT NET LA FINAL: ".$total."<br /><br />";

echo "<a href='random3-rezultat.php?sansa=".$sansa."&suma_initiala=".$suma_initiala."&numar_meciuri=".$numar_meciuri."'>recalculeaza</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='random3.php'>inapoi la formular</a>"
?>

Man Man