當前位置:編程學習大全網 - 網站源碼 - Sqrtjava源代碼

Sqrtjava源代碼

妳好,程序如下:導入Java . io . *;public class b { public static double sqrt(int I){ return math . sqrt(I);} public static void main(String[]args)拋出io exception { buffered reader bfr = new buffered reader(new InputStreamReader(system . in));System.out.println("請輸入壹個數字:");string str = bfr . readline();int I = integer . parse int(str);double j = b . sqrt(I);System.out.println(i+)的根等於:“+j”);}}有問題請提出,望采納。
  • 上一篇:軍艦女孩u47打撈地點介紹
  • 下一篇:如何調出CAD坐標標註插件設置選項,快捷鍵是什麽?
  • copyright 2024編程學習大全網