شـريـط الاهـداءات | |
بـعـيـدآ عـن سـيـلـك رود [ هذا القسم مخصص لمختلف المواضيع البعيدة كليا عن مجال الألعاب ] |
|
أدوات الموضوع | انواع عرض الموضوع |
16-01-2013, 09:10 PM | #1 | ||||||||||||
|
اكتب برنامج بلغة جافا 1:ادخل المصفوفه fill the arry with 10 students 2: ترتيب المصفوفه تصاعدياً sort the stdents by ascending numbers 3: print all students 4: Exit استخدم الكود التالي لاتمام البرنامج المطلوب import java .util.scanner ; public class a { public static void main (string[]args){ scanner s=new scanner (system.in); int x; int st[]=new int [10]; while (true){ system.out.println(''............''); system.out.println(''1- fill the arry with 10 students''); system.out.println(''2-sort the stdents by ascending numbers''); system.out.println(''3-print all students ''); system.out.println(''4-exit''); system.out.println(''....................''); system.out.println)''enter the choice:''); x=s.nextlnt(); switch(x){ case 1 : system.out.println (''fill''); break; case 2 : system.out.println(''sort''); break case 3 : for (int i=0 ;i<st.lenght;i++) system.out.println(st[i]); break; case 4 : system .exit(0); default : system .exit (0); } ارجوووووووووووووكم اريد الحل :( اليوم وبسررررعه اروجكم :((((((( |
||||||||||||
|
17-01-2013, 12:07 AM | #2 | ||||||||||
|
يا بنى النت أخترعوه لييه على طول أكتب الى عاوزوا وهوا فى ثانيا هيكون جيلاك عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ] |
||||||||||
|
يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر) | |
|
|