Skip to content

Commit 7760126

Browse files
authored
Merge pull request Vedenin#78 from abhijeet223/patch-1
updated it with a code of finding square root of any number
2 parents e4d47e6 + 7a69825 commit 7760126

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

helloworlds/contributing.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,21 @@ You can see [json sections](https://github.com/Vedenin/useful-java-links/tree/ma
55
Ideally, if you examples can be build using only maven, and running using only Idea Community or Eclipse.
66

77
Thank you for any your suggestions!
8+
9+
import java.lang.*;
10+
public class Calulator {
11+
double i;
12+
double x;
13+
void p(){
14+
x = Math.sqrt(i);
15+
}
16+
}
17+
class Demonstration_81{
18+
public static void main(String[] args){
19+
Calulator a = new Calulator();
20+
a.i = 20.0;
21+
a.p();
22+
System.out.println("Square root of"+a.i+" is "+a.x);
23+
24+
}
25+
}

0 commit comments

Comments
 (0)