herrDeng網內搜尋

自訂搜尋

Ads

2016年9月7日 星期三

ex1算平均

33, 45, 87, 99, 27
算平均

68 則留言:

B10433026 提到...

public class ex2 {
public static void main(String[] args) {
int x = 33;
int y = 45;
int a = 87;
int b = 99;
int z = 27;
Double sum= (x+y+z+a+b)/5.0;
System.out.println(sum);
}
}

B10433036 提到...

public class ex2 {



public static void main(String[] args) {

int x=33;

int y=45;

int z=87;

int a=99;

int b=27;

Double sum=(x+y+z+a+b)/5.0;

System.out.println(sum);





}



}

B10433037 提到...

public class ex2 {



public static void main(String[] args) {

int x = 33;

int y = 45;

int z = 87;

int a = 99;

int b = 27;

Double sum = (x+y+z+a+b)/5.0;

System.out.println(sum);

}

}

B10433044吳玉瀚 提到...

public class a01 {

public static void main(String[] args) {

int [] A={33,45,87,99,27};

int SUM=0;

for(int i=0;i < A.length;i++)

SUM+=A[i];

System.out.println(+SUM);

}

}

B10433014 提到...

public class Toyz {



public static void main(String[] args) {

int a,h,q,x,y,sum;

a=33;

h=45;

q=87;

x=99;

y=27;

sum=0;

sum= a+h+q+x+y;

System.out.println(sum/5);

}



}

B10433027 提到...

import java.util.Scanner;

public class ex01 {

public static void main(String[] args) {

int x,y,z,a,b;

Scanner input=new Scanner(System.in);

x=input.nextInt();

y=input.nextInt();

z=input.nextInt();

a=input.nextInt();

b=input.nextInt();

Double sum=(x+y+z+a+b)/5.0;

System.out.println(sum);

}

}

B10433026 提到...

import java.util.Scanner;

public class pe1 {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);
int x = input.nextInt();
int y = input.nextInt();
int z = input.nextInt();
int a = input.nextInt();
int b = input.nextInt();
int sum=a+b+x+y+z;
System.out.println(sum);
System.out.println(sum/5.0);
}
}

B10433023李佳明 提到...

public class ex1 {



public static void main(String[] args) {

int q=33,a=45,z=87,w=99,s=27,sum=0;

sum=q+a+z+w+s;

System.out.println("平均="+sum/5.0);



}



}



平均=58.2

B10433183 提到...



public class hello1 {



public static void main(String[] args) {

System.out.println("hello");

}



}

B10433019李佳潔 提到...

public class EX01
public static void main(String[] args) {
int x=33;
int y=45;
int z=87;
int a=99;
int b=27;
int sum=x+y+z+a+b;
System.out.println(sum/5.0);
}
}

B10433054孫若庭 提到...

public class ex02 {

public static void main(String[] args) {
int x=33;
int y=45;
int z=87;
int a=99;
int b=27;
int sum=x+y+z+a+b;
System.out.println(sum/5.0);

}

}

B10433009蔡佩樺 提到...

public class ex02 {
public static void main(String[] args) {
int x=33; int y=45; int a=87; int b=99; int c=27; int sum=x+y+a+b+c; System.out.print(sum/5.0); }

}

b10433005沈沛姍 提到...

public class ex1 {



public static void main(String[] args) {

int a=33;

int b=45;

int x=87;

int y=99;

int z=27;

int sum=a+b+x+y+z;

System.out.println(sum/5.0);

}

}

B10433183 提到...



public class exe1 {



public static void main(String[] args) {

int a=33,b=45,c=87,d=99,e=27;

int sum = a+b+c+d+e;

double avg = sum / 5.0;

System.out.println(avg);

}



}

// 33, 45, 87, 99, 27

B10433068丁麗馨 提到...



public class ex1 {



public static void main(String[] args) {

int x=33;

int y=45;

int z=87;

int a=99;

int b=27;

int sum=x+y+z+a+b;

System.out.println(sum/5.0);



}



}

b10433008 提到...

public class ex02 {



public static void main(String[] args) {

int x=33;

int y=45;

int z=87;

int b=99;

int c=27;

int sum=x+y+z+b+c;

System.out.println(sum/5.0);





}



}

B10433006張正祺 提到...

public class ex1 {



public static void main(String[] args) {

int x=33;

int y=45;

int z=87;

int b=99;

int c=27;

int sum=x+y+z+b+c;

System.out.println(sum/5.0);

}



}

B10433020 沈柏軍 提到...

public class ex2 {



public static void main(String[] args) {

int x=33;

int y=45;

int z=87;

int b=99;

int c=27;

int sum=x+y+z+b+c;

System.out.println(sum/5.0);



}



}

B10433007張聖鑫 提到...

public class ex02 {



public static void main(String[] args) {

int x=33;

int y=45;

int z=87;

int b=99;

int c=27;

int sum=x+y+z+b+c;

System.out.println(sum/5.0);



}



}

b10233177 吳國豪 提到...

public class ex01 {



public static void main(String[] args) {

int x=33;

int Y=45;

int z=87;

int b=99;

int c=27;

int sum=x+Y+z+b+c;

System.out.println(sum/5.0);



}



}

b10233049 黃家崙 提到...



public class ex01 {



public static void main(String[] args) {

int x=33;

int Y=45;

int z=87;

int b=99;

int c=27;

int sum=x+Y+z+b+c;

System.out.println(sum/5.0);



}

}

B10433030 楊家睿 提到...

public class e123 {



public static void main(String[] args) {

int q=33,w=45,r=87,t=99,y=27,sum=0;

sum=q+w+r+t+y;

System.out.println("平均="+sum/5.0);



}



}




平均=58.2

B10433184 提到...

package o;



public class one {



public static void main(String[] args) {

int a=33, a1=45, a2=87, a3=99, a4=27;

int sum=a+a1+a2+a3+a4;

double avg=sum/5.0;

System.out.println(avg);



}



}

B10433185 提到...

public class ex1 {



public static void main(String[] args) {

// 33, 45, 87, 99, 27

int a=33, b=45, c=87, d=99, e=27;

int sum=a+b+c+d+e;

double av=sum/5.0;

System.out.println(av);

B10433053謝肇安 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433194謝旻君 提到...

public class ex01 {



public static void main(String[] args) {

int a=33, b=45, c=87, d=99, e=27;

int sum=a+b+c+d+e;

double av=sum/5.0;

System.out.println(av);

B10433193林佩縈 提到...

public class ex01 {



public static void main(String[] args) {

// 33, 45, 87, 99, 27

int a=33, b=45, c=87, d=99, e=27;

int sum=a+b+c+d+e;

double av=sum/5.0;

System.out.println(av);



}



}

B10433038詹恭煒 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433018張易儒 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433024陳錡諹 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433025羅亦志 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433066劉民崧 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433049宋子文 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433051莊孟軒 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433032劉鍵佑 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433031陳頌恩 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433089杜恩瑋 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433090張文翰 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433088姜佩萱 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433042 提到...

public class god {



public static void main(String[] args) {

int x,y,z,a,b,sum;

x=33;

y=45;

z=87;

a=99;

b=27;

sum=0;

sum = x+y+z+a+b+sum;

System.out.println(sum/5);

}



}

B10433015 提到...

public class ex1 {
public static void main(String[] args) {
int x,y,z,a,b,sum=0;
x=33;y=45;z=87;a=99;b=27;
sum=x+y+z+a+b;
System.out.println(sum);
double av=sum/5.0;
System.out.println(av);
}
}

B10333022李昕翰 提到...

public class EX01
public static void main(String[] args) {
int x=33;
int y=45;
int z=87;
int a=99;
int b=27;
int sum=x+y+z+a+b;
System.out.println(sum/5.0);
}
}

B10333010陳彥逸 提到...

public class ex02 {



public static void main(String[] args) {

int x=33;

int Y=45;

int z=87;

int b=99;

int c=27;

int sum=x+Y+z+b+c;

System.out.print(sum/5.0);



}



}

B10433044吳玉瀚 提到...

public class a01 {
public static void main(String[] args) {
int [] A={33,45,87,99,27};
int SUM=0;
for(int i=0;i <A.length;i++){
SUM+=A[i];
}
System.out.println(SUM/5);
}
}

B10433040 提到...

public class ex01 {

public static void main(String[] args) {
int x=33;
int y=45;
int z=87;
int a=99;
int b=27;
int sum=x+y+z+a+b;
System.out.println(sum/5.0);

}

}

B10433025 提到...

public class ex03 {

public static void main(String[] args) {
int x=33;
int y=45;
int z=87;
int a=99;
int b=27;
int sum=x+y+z+a+b;
System.out.println(sum/5.0);

}

}

b10433029 提到...

public class ex1 {



public static void main(String[] args) {

int q=33,a=45,z=87,w=99,s=27,sum=0;

sum=q+a+z+w+s;

System.out.println("平均="+sum/5.0);



}



}



平均=58.2

B10433022 提到...

public class ex1 {

public static void main(String[] args) {
int x=33;
int y=45;
int z=87;
int a=99;
int b=27;
Double sum=(x+y+z+a+b)/5.0;
System.out.println(sum);

}

}

B10433035 提到...

public class ex2 {



public static void main(String[] args) {

int x = 33;

int y = 45;

int z = 87;

int a = 99;

int b = 27;

Double sum = (x+y+z+a+b)/5.0;

System.out.println(sum);

}

}

b10233028 提到...

public class ex01 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10433053謝肇安 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433038詹恭煒 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433194謝旻君 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433193林佩縈 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433185施慧齡 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433018張易儒 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433021呂志信 提到...

public class ex01 {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);


}
}

B10433029宋狄淯 提到...

public class ex01 {

public static void main(String[] args) {
int x[]={33,45,87,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);



}

}

B10433022 提到...

package b2;

public class p1 {

public static void main(String[] args) {
int x,y,a,z,d;
x=33;
y=45;
a=87;
z=99;
d=27;
double A=(x+z+y+a+d)/5.0;
System.out.println(A);
}

}

B10433039游叡恩 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B104333050徐佳偉 提到...

public class ex1 {



public static void main(String[] args) {

int q=33,a=45,z=87,w=99,s=27,sum=0;

sum=q+a+z+w+s;

System.out.println("平均="+sum/5.0);



}



}


B10233177吳國豪 提到...

public class ex02 {

public static void main(String[] args) {

int x,y,z,a,b;

x=33;

y=45;

z=87;

a=99;

b=27;

double A=(x+y+z+a+b)/5.0;

System.out.println(A);

}

}

B10233049 黃家崙 提到...

public class ex1 {



public static void main(String[] args) {

int q=33,a=45,z=87,w=99,s=27,sum=0;

sum=q+a+z+w+s;

System.out.println("平均="+sum/5.0);



}



}

B10433083林綾萱 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10433066劉民崧 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10233187 張郁柔 提到...

public class ex1b {

public static void main(String[] args) {
int x[]={33,45,87,99,27};
int sum=0;
for(int a:x)
sum+=a;
System.out.println(sum);
System.out.println(sum/5.0);
}

}

B10233136 巫駿驛 提到...

public class ex01 {



public static void main(String[] args) {

int a=33, b=45, c=87, d=99, e=27;

int sum=a+b+c+d+e;

double av=sum/5.0;

System.out.println(av);

b10433043彭子豪 提到...

public class e123 {



public static void main(String[] args) {

int q=33,w=45,r=87,t=99,y=27,sum=0;

sum=q+w+r+t+y;

System.out.println("平均="+sum/5.0);



}



}




平均=58.2

Related Posts Plugin for WordPress, Blogger...

熱門文章