Advertisement
Guest User

Untitled

a guest
May 20th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. package JavaRabbil;
  2.  
  3. public class AreaOfTriangle {
  4.  
  5. public static void main(String args[]){
  6.  
  7. //Area of triangle = 0.5*base*height;
  8. double area, base = 10,height = 20;
  9.  
  10. area = 0.5*base*height;
  11. System.out.println("Area of Triangle : "+area);
  12.  
  13.  
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement