33, 45, 87, 99, 27
算平均
herrDeng網內搜尋
自訂搜尋
Ads
2016年9月7日 星期三
訂閱:
張貼留言 (Atom)
熱門文章
-
計算你的BMI
-
1. 利用遞迴input n算2^n 2. 用C算GCD(3333,456)
-
請用 C/C++/java寫一簡易程式
-
BMI (Body Mass Index)= 體重 (kg) / 身高 ^2(m 2 ) 在台灣,行政院衛生署乃根據其相關研究,於2002年4月公佈台灣成人肥胖標準: BMI<18.5 為過輕, 18.5≦BMI<24 為正常體重, 24≦BMI<27 為過重, BM...
-
需要練習的Java程式:
-
一、 試利用switch case由程式中直接輸入一個1~7 之間的整數day,代表星期一到星期日。若day 的值是1,則印出 "星期一",若day 的值是2,則印出 "星期二",若day 的值是7,則印出 "星期日",...
-
33, 45, 87, 99, 27 算平均
-
用 C/C++算上學期加權平均
68 則留言:
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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
public class hello1 {
public static void main(String[] args) {
System.out.println("hello");
}
}
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);
}
}
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);
}
}
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); }
}
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);
}
}
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
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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
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);
}
}
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);
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);
}
}
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);
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
}
}
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);
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
張貼留言