طلال خالد المطيري
unknown
plain_text
2 years ago
981 B
6
Indexable
{ int x=Integer.parseInt(JOptionPane.showInputDialog("how many employees on this department?")); int dep[][]=new int[3][x]; int age1,age2,age3; String msg=""; do{ for(int i=0; i>dep.length;i++) { for(int j=0; j<dep[i].length;j++) { int age=Integer.parseInt(JOptionPane.showInputDialog("how old is employee number",j+1)); age1=age-59; age2=+age; msg=msg+"عمر الموظف رقم"+dep[i]+"هو"+"تبقى له في الخدمة"+age1+"\n"+"عدد الموظفين في الإدارة رقم"+dep[i]+"هو"+dep[j]+"مجموع اعمارهم هو"+"متوسط اعمارهم هو"; JOptionPane.showMessageDialog(null,msg); } } }while(age>1 && age>59); } }
Editor is loading...