طلب مساعدة ضروري في التمرين البسيط ده

[LEFT][COLOR=#000000]

[/color][/left]

[CENTER][B]السلام عليكم
دلوقتي انا عايز اعرف لو كان عندي مصفوفة ولتكن10*10
وعايز اعملها ترتيب تصاعدي sorting
بحيث اخلي اكبر عدد فيها هو العنصر A11
اللي هو اول عنصر والعدد اللي بعده A12
يعني املا كل صف من الشمال لليمين وادخل علي الصف اللي بعده وكده عايز مساعدة في التمرين ده بعد اذنكم

بس من غير ما استخدم SORT FUNCTION

generate a 10*10 matrix of random
number, and to sort those numbers across the matrix in the following manner: if aij
is the element in row i and column j of the random matrix, then the largest number
should be in position a11 and the second largest in a12 and so on until you place the
10th largest number in position a110. Then, place the 11th largest number in a21 and
so forth until the whole matrix is sorted

وشكرا مقدما.[/b][/center]

ممكن تستخدم الامر max لايجاد اكبر عنصر فى المصفوفة وتقوم بوضعه فى المكان المحدد فى المصفوفة الجديدة ووضع قيمته تساوى nan فى المصفوفة القديمة وتنفيذ الامر مرة اخرى حتى اخر عنصر فى المصفوفة