Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Day 1
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { double sum; sum = 0; Scanner sc = new Scanner(System.in); double n = sc.nextDouble(); double m = sc.nextDouble(); for (int i = 1; i <= n; i++) { sum = Math.sqrt(m + sum); } System.out.println("Ket qua = " + sum); } }
run
|
edit
|
history
|
help
0
Charles Chung
Question FizzBuzz
Instance fields are no overridden
1.5
AVL-GO-FLAT
anonymous abstract class
javaSuperSub
Java - SimpleDateFormat(ting)
LeetCode 121 - Best time to buy and sell stock - O(n) solution
test1