Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=83567
Postga havola
developer [323] [off]
birliklar onliklar yuzliklar funksiyalarni oshirib milliongacha chiqaradigan qilsa boladi shuyerga cha yozib zerikib qoldim
<!DOCTYPE html> <html> <head> <title>sonni aniqlab yozmasini topish</title> </head> <body> <form> <input type="number" name="son"> <input type="submit" name="ok"> </form> </body> </html> <?php function birliklar($birlik){ switch ($birlik) { case 1: $bir = "bir"; break; case 2: $bir = "ikki"; break; case 3: $bir = "uch"; break; case 4: $bir = "tort"; break; case 5: $bir = "besh"; break; case 6: $bir = "olti"; break; case 7: $bir = "yetti"; break; case 8: $bir = "sakkiz"; break; case 9: $bir = "toqqiz"; break; } return $bir; } function onliklar($onlik){ switch ($onlik) { case 10: $on = "on"; break; case 20: $on = "yigirma"; break; case 30: $on = "ottiz"; break; case 40: $on = "qirq"; break; case 50: $on = "ellik"; break; case 60: $on = "oltimish"; break; case 70: $on = "yettimish"; break; case 80: $on = "sakson"; break; case 90: $on = "toqson"; break; } return $on; } function yuzliklar($yuzlik){ switch ($yuzlik) { case 100: $yuz = "yuz"; break; case 200: $yuz = "ikki yuz"; break; case 300: $yuz = "uch yuz"; break; case 400: $yuz = "tort yuz"; break; case 500: $yuz = "besh yuz"; break; case 600: $yuz = "olti yuz"; break; case 700: $yuz = "yetti yuz"; break; case 800: $yuz = "sakkiz yuz"; break; case 900: $yuz = "toqqiz yuz"; break; } return $yuz; } $son = $_GET['son']; //1000 000 if($count==1){ echo birliklar($son); } else if($count==2){ echo onliklar($onliklar)." ".birliklar($birliklar); } else if ($count==3) { echo yuzliklar($yuzliklar)." ".onliklar($onliklar)." ".birliklar($birliklar); } } ?>
birliklar onliklar yuzliklar funksiyalarni oshirib milliongacha chiqaradigan qilsa boladi shuyerga cha yozib zerikib qoldim