Java Exp1-area

  • Uploaded by: jyotsna
  • 0
  • 0
  • April 2020
  • PDF

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


Overview

Download & View Java Exp1-area as PDF for free.

More details

  • Words: 58
  • Pages: 1
/*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); } }

Related Documents

Java Java
June 2020 44
Java
November 2019 24
Java
November 2019 26
Java
December 2019 27
Java
November 2019 23
Java
November 2019 25

More Documents from ""

Service Blueprint
April 2020 10
Java Exp1-temp
April 2020 6
Java Exp1-array
April 2020 10
Cn Question Bank
April 2020 5
Hci Unit 1 Ch-02
April 2020 10