gholonbeh
Member
اگر بخوام داخل يه عبارت شرطي اگه شرط بر قرار نبود دوباره برگرده و كد اول رو. اجرا كنه چي جوري مي تونم اين كارو بكنم اينم كد كل برنامه است البته تا اينجا:
<html>
<head>
<title>number</title>
</head>
<body>
<?php
$test=trim($test)
$qwe=trim($qwe)
$asd=trim($asd)
$n=1
$total=($test+$qwe)/2
$totalcost=$test*$total
$total=abs($total)
if($total<$asd) {
print('$total,$n);
if($totalcost>0) {
$test=$total
$n++;
}else{
$qwe=$total
$n++;
}
<html>
<head>
<title>number</title>
</head>
<body>
<?php
$test=trim($test)
$qwe=trim($qwe)
$asd=trim($asd)
$n=1
$total=($test+$qwe)/2
$totalcost=$test*$total
$total=abs($total)
if($total<$asd) {
print('$total,$n);
if($totalcost>0) {
$test=$total
$n++;
}else{
$qwe=$total
$n++;
}