This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
/*Program To Find Area of Circle,Triangle,Rectangle */ class Area { public static void main(String args[]) { float pi=3.14f; float r=20; float c; float b=10; float h=15; float t; float a=0.5f; float rec; c=pi*r*r;
System.out.println("Area of Circle is " + c); t=a*b*h; System.out.println("Area of Triangle is " + t); rec=b*h; System.out.println("Area of Rectangle is " + rec); } }