Closed harshraj8843 closed 2 years ago
public static void main(String[] args) {
area(10, 17, 21);
}
public static int area(int a, int b, int c){
int s = (a+ b + c) / 2;
int area = (int) Math.sqrt(s * (s-a) * (s - b) * (s - c));
System.out.println("Area : " + area);
return area;
}
}`
Hey @Glogius95
Thanks for showing your interest in this open source project 😃
Could you please open a pull request for this
Title of article
Write a Java programme to find area of triangle.
Additional information
Code of Conduct