Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Area{
- public static void main(String[] args){
- double a = 3.0;
- double b = 4.0;
- double c = 5.0;
- double s = 0.0;
- double area;
- s = (a+b+c)/2;
- area = Math.sqrt(s*(s-a)*(s-b)*(s-c));
- System.out.println(area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement