herrDeng網內搜尋
自訂搜尋
Ads
訂閱:
張貼留言 (Atom)
熱門文章
-
教育部為提昇全民資安素養與電腦防護能力,本部於101年9月5日至11月5日舉辦「全民資安素養自我評量」活動,請在活動期間內踴躍上網檢測資訊安全素養認知程度,並有機會參與抽獎,詳情請參閱活動網站(網址: https://isafe.moe.edu.tw/event
-
url="https://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date=20220330&stockNo=2330"
-
先說明一下這是後知後覺的解答,所謂後知就是股票價格已知存在陣列(清單),當然就要用迴圈練習,雙迴圈暴力解需時O(n**2),當然不用,採python單一迴圈解答「最佳股票的買賣時機#LeetCode 121 Best Time to Buy and Sell Stock」,解...
-
你會用C的算子sizeof?
-
Python C++使用字串find迴圈速解Leetcode 2490 Circular Sentence C++ & Python都有字串的find,用法都類似 split=s.find(' ', split+1)能找到s從index=split+1開...
-
Python CPP heap priority queue速解L eetcode 2530. Maximal Score After Applying K Operations heap/priority queue是重要的資料結構,無論是C++的std::priority_q...
40 則留言:
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)));
}
}
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));
}
}
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)));
}
}
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));
}
}
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
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));
}
}
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));
}
}
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)));
}
}
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));
}
}
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));
}
}
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
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));
}
}
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));
}
}
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));
}
}
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));
}
}
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));
}
}
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);
}
}
}
}
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)));
}
}
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));
}
}
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));
}
}
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));
}
}
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)));
}
}
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)));
}
}
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)));
}
}
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)));
}
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)));
}
}
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));
}
}
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));
}
}
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));
}
}
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)));
}
}
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)));
}
}
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));
}
}
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));
}
}
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
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));
}
}
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));
}
}
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));
}
}
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));
}
}
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));
}
}
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)));
}
}
張貼留言