۴۰۴ Not Found! قیمت ها به ۴۰۳ برگشت! به مدت محدود!
بزن بریم!با سلام
عزیزان من این مسئله رو نیاز دارم با پی اچ پی بنویسم ولی مشکل دارم
اگر کسی بتونی حلش کنه ممنون میشم
https://quera.org/problemset/3539/
سلام این برای من کار میکنه ولی سیستم داوری میگه اشتباهه
حالا خودت تست کن ببین باگی داره یا نه
<?php
$input=123456123456123456;
function splitandcount($input){
$countfist=0;
$split=str_split($input);
foreach($split as $value){
$countfist+=$value;
}
if(strlen($countfist)>1){
return splitandcount($countfist);
}else{
return $countfist;
}
}
echo splitandcount($input);
سلام وقت بخیر
<?php
$req = $_POST['request'] ?? "";
if ($req == "send_number") {
$number = $_POST['number'] ;
$sum = 0;
while ($number != 0)
{
$sum += $number % 10;
$number /= 10;
}
echo $sum . "<br>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form method="post">
<input type="text" name="number">
<button type="submit" name="request" value="send_number">ارسال عدد</button>
</form>
</body>
</html>
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟