Skip to content
Algorithms
  • Home
  • IDE
  • Site Map
  • Difficulty Level
    • Beginner
    • Intermediate
    • Expert
  • Interviews
    • Amazon Questions
    • Goldman Sachs
    • Google Interview
    • Microsoft Interview
    • Apache
    • NetApp
    • Adobe
    • Facebook
    • NVIDIA
    • Oracle

Find the Area of a Circle – Java Program

August 31, 2019July 8, 2018 by Sumit Jain

Area of a circle = πR2

Where π = 3.14 and R = radius of circle
Area Of Circle
Example:

Radius = 4.0
Area = π*radius*radius = 3.14*4*4 = 50.24

Code:

Output:

Area of circle with radius=4.0 is: 50.24

Related Posts:

  • Find the Circumference of a Circle - Java Program
  • Find the Area of Triangle using base and height - Java Program
  • Find the Area of a Triangle Given Three Sides – Heron’s Formula
  • Find the Area and Perimeter of Rectangle – Java Program
  • Find the Area of a Triangle Using coordinates
  • Number of Contiguous Parking Areas
  • Java Program to find if Triangle can be formed using given 3 sides
  • Find Factorial of a given Number
  • Print First N Prime Numbers - Java Code
  • Java Program to determine if Given Year is Leap Year
  • Java Program to find Sum the elements of an Array
  • Calculate Log2n without using built-in function
  • Java program to find the largest element in array
  • Print My IP Address – Java Code
  • Get the Sum of Digits in a number till it become a single digit
Categories Beginner, Maths Tags Beginner 2 Comments
Post navigation
Dijkstra’s – Shortest Path Algorithm (SPT) – Adjacency Matrix – Java Implementation
Find number of Distinct Permutations of a String



More Problems

  • Java Program to find Sum the elements of an Array
  • Calculate Log2n without using built-in function
  • Java program to find the largest element in array
  • Print My IP Address – Java Code
  • Get the Sum of Digits in a number till it become a single digit
  • Maximum Difference between two elements in array – Largest Gap Problem
  • Reverse a String using Recursion
  • Bubble Sort and Optimized Bubble Sort- Java Implementation
  • Find Sum of all Digits of a Number
  • Reverse the given String using Stack




Subscribe ( No Spam!!)

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,418 other subscribers

Recent Posts

  • Find departure and destination cities from the itinerary
  • Rank Array Elements
  • Three Consecutive Odd Numbers
  • Non-decreasing Array with one allowed change
  • Duplicate zero’s without expanding the array.
  • Maximum Depth of Valid Nested Parentheses
  • Decimal to Binary
  • Maximum Consecutive Ones
  • Duplicate even elements in an array
  • Minimum Increments to make all array elements unique






© 2021 Algorithms • Powered by GeneratePress