herrDeng網內搜尋

自訂搜尋

Ads

2016年3月22日 星期二

程式設計練習2

請輸入三筆分數(int) 輸出平均(double)

49 則留言:

B10433027吳俊章 提到...

import java.util.Scanner;

public class ex02 {

public static void main(String[] args) {

int x,y,z;

Scanner input =new Scanner(System.in);

x=input.nextInt();

y=input.nextInt();

z=input.nextInt();

double sum=(x+y+z)/3;

System.out.println(sum);

}

}

B10433044 提到...

import java.util.*;
public class a02 { public static void main(String[] args) {
int x,y,z; Scanner
input = new Scanner(System.in);
x=input.nextInt(); y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum/(double)3);
}
}

B10433023李佳明 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); System.out.println (sum/3.0); }

}

B10433014 提到...

import java.util.*; public class xyz66 { public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); System.out.println(sum/3.0); } }

B10433027吳俊章 提到...

import java.util.Scanner;

public class ex02 {

public static void main(String[] args) {

int x,y,z;

Scanner input =new Scanner(System.in);

x=input.nextInt();

y=input.nextInt();

z=input.nextInt();

int sum=(x+y+z);

System.out.println((double)sum/3);

}

}

B10433009蔡佩樺 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) {
int x,y,z;

Scanner input=new Scanner (System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}



30
20
50
100
33.333333333333336

10433038 提到...

import java.util.Scanner;

public class ex2 {

public static void main(String[] args) {

int x,y,z;

Scanner input = new Scanner(System.in);

x =input.nextInt();

y =input.nextInt();

z =input.nextInt();

int sum=x+y+z;

System.out.println((double)sum/3);

}

}

B10433053謝肇安 提到...

import java.util.Scanner;
public class ex2 { public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println((double)sum/3);
}
}

B10133186 提到...

import java.util.Scanner;public class ex2 { public static void main(String[] args) { double A=0; Scanner sc = new Scanner(System.in); System.out.println("要輸入多少個數字"); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { System.out.println("第"+i+"個數字"); int a = sc.nextInt(); A = A + (double) a; } A = A/n; System.out.println("平均"+A); }}

B10433054孫若庭 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) {
int x,y,z;

Scanner input=new Scanner (System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}


90
80
60
230
76.66666666666667

B10433026陳元凱 提到...

import java.util.*; public class ex02 { public static void main(String[] args) { int x,y,z; Scanner input =new Scanner(System.in); x =input.nextInt(); y =input.nextInt(); z =input.nextInt(); int sum=(x+y+z); System.out.println((double)sum/3); } }

B10433007張聖鑫 提到...

import java.util.*;

public class ex2 {



public static void main(String[] args) {

int x,y,z;

Scanner input=new Scanner(System.in);

x=input.nextInt();

y=input.nextInt();

z=input.nextInt();

int sum=x+y+z;

System.out.println((double)sum/3);

}

}

B10433036 提到...

import java.util.*;public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=(x+y+z); System.out.println((double)sum/3);

}

}

B10433019李佳潔 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);

}

}

80
70
90
240
80.0

b10433005沈沛姍 提到...

import java.util.*; public class ex02 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}
}

84
85
60
229
76.33333333333333

B10233019 曾文善 提到...

import java.util.*;public class ex02 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av);

}

}

11
12
14
37
12.333333333333334

B10233047 提到...

import java.util.*;public class ex02 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av);

}

}

B10433020沈柏軍 提到...

import java.util.*;public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); }}




15
22
55
92
30.666666666666668


B10433022吳欣芸 提到...

import java.util.*; public class ex01 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double t=sum/3.0; System.out.println(t); } }


25
23
32
80
26.666666666666668

B10233028 王曉琪 提到...

import java.util.*;public class ex02 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av);

}

}

B10433006張正祺 提到...

import java.util.*;public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); }}



5
15
20
40
13.333333333333334

B10433083林綾萱 提到...

import java.util.*;public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); }}



50
94
62
206
68.66666666666667

B10433035劉軒宇 提到...

import java.util.*;
public class a02 { public static void main(String[] args) {
int x,y,z; Scanner
input = new Scanner(System.in);
x=input.nextInt(); y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum/(double)3);
}
}

B10433001林威翰 提到...

import java.util.*;
public class a02 { public static void main(String[] args) {
int x,y,z; Scanner
input = new Scanner(System.in);
x=input.nextInt(); y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum/(double)3);
}
}

B10433047江景誠 提到...

import java.util.*;
public class a02 { public static void main(String[] args) {
int x,y,z; Scanner
input = new Scanner(System.in);
x=input.nextInt(); y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum/(double)3);
}
}

B10433021呂志信 提到...

package ex01;

import java.util.Scanner;

public class ex02 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}

}



B10433024 陳錡諹 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) {
int x,y,z;

Scanner input=new Scanner (System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}



30
20
50
100
33.333333333333336

B10433031陳頌恩 提到...

package hello1; import java.util.*; public class hello { public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); }

11
12
14
37
12.333333333333334

B10433050 提到...

package ex02;
import java.util.*;

public class ex02 {
public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum =x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}

}

Unknown 提到...

import java.util.*;
public class ex02 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System .in) ;
x=input.nextInt() ;
y=input.nextInt() ;
z=input.nextInt() ;
int sum=x+y+z;
System.out.printIn(sum) ;
}
}

B10433051莊孟軒 提到...

import java.util.Scanner;

public class ex01 {

public static void main(String[] args) {
int x,y,z;

Scanner input=new Scanner (System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}
}



20
30
50
100
33.333333333333336

匿名 提到...

import java.util.*;
public class ex02 {
public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y=z;
System.out.println(sum);
double ab=sum/3.0;
System.out.println(av);
}
}

Unknown 提到...

import java.util.*;
public class ex02 {
public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y=z;
System.out.println(sum);
double ab=sum/3.0;
System.out.println(av);
}
}

Unknown 提到...

import java.util.*;
public class ex02 {
public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y=z;
System.out.println(sum);
double ab=sum/3.0;
System.out.println(av);
}
}

b10433039游叡恩 提到...

import java.util.*;

public class a02 { public static void main(String[] args) {

int x,y,z; Scanner

input = new Scanner(System.in);

x=input.nextInt(); y=input.nextInt();

z=input.nextInt();

int sum=x+y+z;

System.out.println(sum/(double)3);

}

}

B10433029 宋狄淯 提到...

import java.util.*;
public class Hello0322 {
public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}
}

20
11
61
20.333333333333332

b10433034陳智揚 提到...

import java.util.*;
public class a02 { public static void main(String[] args) {
int x,y,z; Scanner
input = new Scanner(System.in);
x=input.nextInt(); y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum/(double)3);
}
}

B10433040葉峻宇 提到...

import java.util.*;
public class a02 { public static void main(String[] args) {
int x,y,z; Scanner
input = new Scanner(System.in);
x=input.nextInt(); y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum/(double)3);
}
}

b10433052 郭冠逸 提到...

import java.util.*;

public class ex02

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); System.out.println (sum/3.0); }

B10433049 宋子文 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); } }

B10233011 吳振誠 提到...

import java.util.*;



public class ex2 {



public static void main(String[] args) {

int x,y,z;

Scanner input=new Scanner(System.in);

x=input.nextInt();

y=input.nextInt();

z=input.nextInt();

int sum=x+y+z;

System.out.println(sum);

double av=sum/3.0;

System.out.println(av);

}



}

B10433051莊孟軒 提到...

import java.util.Scanner;

public class ex01 {

public static void main(String[] args) { int x,y,z;

Scanner input=new Scanner (System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); } }

B10433042張正輝 提到...

import java.util.*;public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); System.out.println(sum/3.0); }

B10433068丁麗敏 提到...

import java.util.*;



public class ex2 {



public static void main(String[] args) {

int x,y,z;

Scanner input=new Scanner(System.in);

x=input.nextInt();

y=input.nextInt();

z=input.nextInt();

int sum=x+y+z;

System.out.println(sum);

double avg=(double)sum/3;

System.out.println(avg);

}



}



17

11

19

47

15.666666666666666

B10433008王靖雲 提到...

import java.util.*;

public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double avg=(double)sum/3; System.out.println(avg); }}

17 29 31 77 25.666666666666668

匿名 提到...

B10233005
import java.util.*;public class ex2 {

public static void main(String[] args) { int x,y,z; Scanner input=new Scanner(System.in); x=input.nextInt(); y=input.nextInt(); z=input.nextInt(); int sum=x+y+z; System.out.println(sum); double av=sum/3.0; System.out.println(av); }}


20
50
30
100
33.333333333333336

b10233171 劉仲宇 提到...

import java.util.*;

public class ex2 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}

}

B10233172 廖俊綸 提到...

import java.util.*;

public class ex2 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);
}

}

B10433015 提到...

import java.util.*;

public class ex02 {

public static void main(String[] args) {
int x,y,z;
Scanner input=new Scanner(System.in);
x=input.nextInt();
y=input.nextInt();
z=input.nextInt();
int sum=x+y+z;
System.out.println(sum);
double av=sum/3.0;
System.out.println(av);

}

}

Related Posts Plugin for WordPress, Blogger...

熱門文章