Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class B10207081{
- public static void main(String args[]){
- int a[][]={{33,32,56,45,33},{77,33,68,45,23},{43,55,43,67,65}};
- int i,j,sum=0;
- for(i=0;i<a.length;i++){
- System.out.print("業務員"+(i+1)+"的業績分別為 ");
- for(j=0;j<a[i].length;j++){
- System.out.print(a[i][j]+" ");
- sum+=a[i][j];
- }
- System.out.println();
- }
- System.out.println("\n總銷售量為"+sum+"部車");
- System.out.println("\n總銷員的銷售平均為"+((float)sum/a.length));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement