import java.lang.*;

class Rectangle
{

public static void main(String args[])
{

float a=5.3f,b=6.3f,area,peri;
System.out.println(“\nRectangle:\n”);
System.out.println(“Sides of the Rectangle a : “+a+” b : “+b);

area=(a*b);
peri=(2*(a+b));
System.out.println(“Area of the Rectangle : “+area);
System.out.println(“Perimeter of the Rectangle : “+peri);
}
}

39,629 total views, 280 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

2,712 Thoughts to “Java Program To Find Area And Perimeter Of Rectangle”

  1. Do you have a spam issue on this site; I also am a blogger, and I was wanting to know your situation; we have created
    some nice practices and we are looking to swap techniques with other folks, please shoot
    me an e-mail if interested.

  2. This is very interesting, You’re a very skilled blogger. I have joined your rss feed and look forward to seeking more of your wonderful post. Also, I’ve shared your site in my social networks!|

  3. I indeed like this advise, i did not appreciate a destiny of the things that you posted in here. i ahve much more latest information with regard to these topics and topics coordinated to it. some people may find it implacable to understadn the english language but i upon it moderately gentle for the retreat that has discover to be what is todays policy.
    nfl jerseys outlet http://www.nfloutlet.online

Leave a Comment