|
 |
|
function array หาค่ามากและน้อยโดยใช้คำสั่ง function array ทำยังไงอ่ะ |
|
 |
|
|
 |
 |
|
ว่างัยสาวน้อย วันนี้จารย์ให้ปัญหามาอีกแล้วอะจิ
เมื่อคืนหว่านเสน่ห์ เล่นเอาเพ่ๆ ตาละห้อยกันเป็นแถวเลย อิอิอิ
|
 |
 |
 |
 |
Date :
2009-10-07 13:52:41 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
สอบเทสอ่ะ
ยากมากเลย มาถึงก้อโจทย์เตมกระดานเลย
ให้หาค่ามาก น้อย โดยใช้ฟังก์ชั่น array อ่ะ แค่โจทย์ยังไม่เข้าจัยเลย
แล้วอีกข้อก้อหาสินค้าแพงสุด โดยไม่ใช้ฟังก์ชั่น

|
 |
 |
 |
 |
Date :
2009-10-07 13:58:57 |
By :
muavon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แล้ว ทำได้หรือยังครับ
|
 |
 |
 |
 |
Date :
2009-10-07 14:03:37 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ยังไม่ได้เลยค่ะ
<?php
?>
แค่เนี้ย
T^T
|
 |
 |
 |
 |
Date :
2009-10-07 14:04:33 |
By :
muavon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
   
|
 |
 |
 |
 |
Date :
2009-10-07 14:06:54 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
<?php
$a=array(7,15,35,49,51,78,95,105,170);
echo max($a);
echo min($a);
?>
|
 |
 |
 |
 |
Date :
2009-10-07 14:09:34 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
หวัง่าคงจะได้นะ
echo "<BR>";
ใส่บันทัดนี้ระหว่างบันทัดมินกะแม็กก็ดี   
|
 |
 |
 |
 |
Date :
2009-10-07 14:10:34 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
นี่คือคำสั่ง fucntion แล้วใช่ป่ะคะ
ขอบคุณนะคะ
|
 |
 |
 |
 |
Date :
2009-10-07 14:17:09 |
By :
muavon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
array ให้ใช้ตัวนี้ไม่ใช่หรือไงจ๊ะ
|
 |
 |
 |
 |
Date :
2009-10-07 14:20:07 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พี่นาโนช่วยสาวๅเต็มที่เลยน่า   
echo "สู้ๆ"
|
 |
 |
 |
 |
Date :
2009-10-07 14:25:35 |
By :
xbeginner01 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เหอๆๆๆๆ ถ้ารู้ช่วยทุกคนแหละ ไม่แบ่งเพศ ชั้น วรรณะ คร๊าบบบบบ
|
 |
 |
 |
 |
Date :
2009-10-07 14:28:02 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พิมแบบพี่นาโนบอกแล้ว
ยังไม่ได้เลยค่ะ
ไม่เปนไรค่ะ
ขอบคุณค่ะ
|
 |
 |
 |
 |
Date :
2009-10-07 14:29:05 |
By :
muavon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มันฟ้องว่าอะไรบ้าง
แต่พี่ทดสอบแล้วนะว่าได้
|
 |
 |
 |
 |
Date :
2009-10-07 14:41:48 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
หรือว่าไม่ได้ตามที่อาจารย์ต้องการ
ถ้าเป็นแบบนี้คุณนย้องบอกอาจารย์ไปเลยนะว่า อาจารย์ทำเอาเองดีไหม อิอิอิ
สอนเด็กให้เป็นศิษย์คิดล้งครูหรือเปล่าหนอเรา
|
 |
 |
 |
 |
Date :
2009-10-07 14:43:04 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อ.เค้ายังเขียนเองไม่เปนเลยด้วยมั้ง
ผลลัพธ์ที่ทำตามที่พี่บอก
แทนที่มันจะขึ้นค่า สูงสุด เช่น 60 มันกลายเปนว่า
6060
|
 |
 |
 |
 |
Date :
2009-10-07 21:47:45 |
By :
muavon |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอาโค้ดมาดูหน่อซิครับ
|
 |
 |
 |
 |
Date :
2009-10-07 21:51:55 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เงียบซะงั้น หนีไปนอนแล้วมั้งเนี่ย
|
 |
 |
 |
 |
Date :
2009-10-07 22:08:21 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อุ๊ย มั่วแต่ดูการ์ตูน โคนันอยู่ลืมเข้ามาดู หุหุหุ
Code (PHP)
<?php
$a=array(7,15,35,49,51,78,95,105,170);
echo max($a);
echo"<br>";
echo min($a);
?>
ผลลัพธ์ที่ได้
ค่ามาก 170
ค่าน้อย 7
5555555 เอาของเพ่อาโนมาเลยนะเนีย
|
 |
 |
 |
 |
Date :
2009-10-07 22:25:40 |
By :
somparn |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อาโน ชรา สเน็กเกอร์
อาโน
ชรา = เฒ่า
สเน็ก = งู
เติมหัวเข้าไปอีกหน่อย แหะๆๆๆๆ รู้นะคิดอะไรกันอยู่
  
|
 |
 |
 |
 |
Date :
2009-10-07 22:37:00 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ตื่นได้แล้ว สาวน้อย เพ่สมภาณรอเลี้ยงข้าวอยู่นะ รู้ไหม
|
 |
 |
 |
 |
Date :
2009-10-08 09:32:56 |
By :
NanoThoro |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 03
|