herrDeng網內搜尋

自訂搜尋

Ads

2014年3月11日 星期二

Java作業5 bmi

輸入身高、體重,算出bmi值

40 則留言:

B10233064 莊英霆 提到...

import java.util.*;
public class num {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

}

B10233061 吳興強 提到...

package text;
import java.util.*;
public class hello {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+y/(x*x));

}

}

B10233064 莊英霆 提到...

import java.util.*;
public class num {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

}

B10233082 唐偉強 提到...

package hello;

import java.util.Scanner;

public class class311 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("身高:");
double m=input.nextDouble();
System.out.println(m);
System.out.println("體重:");
double b=input.nextDouble();
System.out.println(b);
System.out.println("BMI="+b/(m*m));

}

}

B10233081 提到...

package hello;

import java.util.Scanner;

public class hello {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));
}

}

輸入整數m(公尺)=
1.68
1.68
輸入整數w(公斤)=
50
50.0
BMI=17.71541950113379

B10233062 黃聖評 提到...

package she;

import java.util.Scanner;

public class she1 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

B10233090 提到...

package ttt;

import java.util.Scanner;

public class wwwww {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*w));
}
}

B10233110 提到...


import java.util.Scanner;

public class java {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("身高=");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("體重=");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+(w/(m*m)));
}
}

B10233091 提到...

package hello311;

import java.util.*;

public class java311 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));

}

}

B10233075 提到...

package hello;
import java.util.*;
public class hi {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));


}

}

B10233063 張宜禎 提到...

package hello;

import java.util.*;

public class hello311 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));
}

}

輸入整數m(公尺)
1.50
1.5
輸入整數w(公斤)
40
40.0
BMI=17.77777777777778

B10233087 黃少洋 提到...

package she;

import java.util.Scanner;

public class she1 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

B10233095李元宏 提到...

package she;

import java.util.Scanner;

public class she1 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

B10233102 提到...

package ddddddd;

import java.util.Scanner;

public class rrrrrr {

public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*w));
}
}

b10233068 邱佳函 提到...

package hello311;

import java.util.Scanner;

public class hello {

public static void main(String[] args) {

Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

B10233076 提到...

package hello;
import java.util.*;
public class hi {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));


}

}

B10233078 提到...

package hello;

public class hello123 {

public static void main(String[] args) {
import java.util.*;
public class TestBMI{
public static void main(String[] args) {
String name;
double h, w, bmi;
Scanner getvar1 = new Scanner(System.in);
System.out.println( "請輸入姓名(name):" );
name =getvar1.next();
System.out.println( "請輸入身高(M):" );
h = getvar1.nextDouble();
System.out.println( "請輸入體重(KG):" );
w = getvar1.nextDouble();
bmi = w/((h/100)*(h/100));
System.out.printf( "你的BMI為:%2.2f " , bmi);
}
}
}

}

B10233108 林宣瑋 提到...

import java.util.Scanner;


public class LaoLin0311 {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}
}

Y10211064 黃耀葦 提到...

package she;

import java.util.Scanner;

public class she1 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

b10233105曾家偉 提到...

package text;
import java.util.*;
public class hello {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+y/(x*x));

}

}

B10233092 提到...

package aaa;

import java.util.Scanner;

public class bbb {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*w));
}
}

B102330665張哲毓 提到...

import java.util.Scanner;


public class BWS0311 {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}
}

B10233066張哲毓 提到...

import java.util.Scanner;


public class BWS0311 {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}
}

Y10211027 張君弘 提到...

package hello311;

import java.util.Scanner;


public class hello {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}
}

B10233097 邱宥甄 提到...

package www;

import java.util.*;

public class qq {

public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.println("身高");
double x = input.nextDouble();
System.out.println(x);
System.out.println("體重");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

B10233098 陳孟緣 提到...

import java.util.*;

public class ZZ {

public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.println("身高");
double x = input.nextDouble();
System.out.println(x);
System.out.println("體重");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

}

B10233089 提到...

package quake311;
import java.util.*;
public class hi {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));
}
}

B10233067 提到...

package quke311;
import java.util.*;
public class hi {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m=(公尺)");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w=(公斤)");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));
}
}

B10233106 葉作暐 提到...

package test;
import java.util.*;
public class hello {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+y/(x*x));
}

}

B10233080 陳芊慈 提到...


import java.util.*;

public class ZZ {

public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.println("身高");
double x = input.nextDouble();
System.out.println(x);
System.out.println("體重");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

}

b10233070劉思涵 提到...

package aa;

import java.util.*;

public class ss {

public static void main(String[] args) {
Scanner input=new Scanner (System.in);
System.out.println("身高");
double x = input.nextDouble();
//System.out.println("x=");
System.out.println("體重");
double y = input.nextDouble();
// System.out.println("y=");
System.out.println("BMI="+(y/(x*x)));

}

}

B10233079 提到...

package aaa;

import java.util.Scanner;

public class bbb {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*w));
}
}

B10233103 提到...

package aaa;

import java.util.Scanner;

public class bbb {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*w));
}
}

B10233084 陳億如 提到...

package hello;
import java.util.*;
public class hello311 {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m)); } }

輸入整數m(公尺)
1.58
1.58
輸入整數w(公斤)
55
55.0
BMI=22.031725684986377

B10233065 提到...

package hello0311;

import java.util.Scanner;

public class hello0311 {

public static void main(String[] args) {

Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

B9933029江軒澔 提到...

import java.util.*;
public class num {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

}

2014年3月11日 上午10:01
匿名 B10233061 吳興強 提到...
package text;
import java.util.*;
public class hello {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+y/(x*x));

}

}

B10233096 提到...

package text;
import java.util.*;
public class hello {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("輸入體重(公斤)=");
double y=input.nextDouble();
System.out.println(y);
System.out.println("BMI="+y/(x*x));

}

}

B10233076 提到...

package hello;

import java.util.*;

public class hello{

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入整數m(公尺)=");
double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入整數w(公斤)=");
double w=input.nextDouble();
System.out.println(w);
System.out.println("BMI="+w/(m*m));


}

}

B10233073 楊博宇 提到...

package rgr;

import java.util.Scanner;

public class rgr13 {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("輸入身高M=:");
Double m=input.nextDouble();
System.out.println(m);
System.out.println("輸入體重W=:");
Double w=input.nextDouble();
System.out.println(w);
System.out.println("w/(m*m)"+w/(m*m));
}

}

B10233074 許逸憲 提到...

import java.util.*;
public class num {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
System.out.println("請輸入身高(公尺)=");
double x=input.nextDouble();
System.out.println(x);
System.out.println("請輸入體重(公斤)=");
double y = input.nextDouble();
System.out.println(y);
System.out.println("BMI="+(y/(x*x)));

}

}

Related Posts Plugin for WordPress, Blogger...

熱門文章