import java.io.*; class TinhCanBacBa { public static void main(String arg[]) throws Exception { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Nhap N: "); int n = Integer.parseInt(in.readLine()); double d = 1; for (int i = 0; i <= 100; i++) d = (d+n/d/d)/2; System.out.println("Ket qua = "+d); } }
có ai hỏi ko mà post vậy làm hộ cái này nhé đếm số lần xuất hiện của mỗi từ trong xâu. vd : "toi dang hoc dai hoc va toi la mot sinh vien dai hoc dang hoc nam thu n"
-He He tại đang học JAVA đang làm bài tập ở trường mà wen đem theo USB nên copy lên đây về nhà làm tiếp ấy mà :hug: