Back To Java Basics Index
//program to input base and height of right angled triangle and find area of right angled triangle public class arearightangtri { public static void main(String[] args) { int base; int height; float area; base=10; height=5; area=0.5f*base*height; System.out.println("area of right angle triangle is " + area); } }