Saturday, July 4, 2015

// // Leave a Comment

Program To Calculate Area and Perimeter Of A Circle

The program below is the answer to Liang's Introduction To Java Programming (9th Edition) Chapter 1 Exercise 1.8.

 * @Author: Aghatise Osazuwa
 * Website:
 * Exercise 1.8 - Area And Perimeter Of A Circle

public class Ex01_08 {

 public static void main(String[] args) {

  System.out.println("Radius of circle = 5.5");
  System.out.println("Perimeter = 2 x radius x pi = " + 2 * 5.5 * Math.PI);
  System.out.println("Area = radius x radius x pi = " + 5.5 * 5.5
    * Math.PI);


Click here to see other solutions to Introduction to Java Programming.


Post a Comment

DISCLAIMER: Opinions expressed in comments are those of the comment writers alone and does not reflect or represent the views of the post author. We reserve the right to delete any post deemed inappropriate or offensive and/or spammy. Please do not use abusive words/hate speech.

I Appreciate your valuable Feedback. So, Please DO NOT SPAM - Spam comments will be deleted immediately.

Don't use brand name in name field and you're not allowed to use links in comments unless it's necessary. Such comments will be removed immediately. To get notified of replies or follow-up comments, click the box next to notify me.