- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Java program to find the circumference of a circle
The circumference of a circle is double the product of its radius and the value of PI. Therefore, to calculate the circumference of a circle
- Get the radius of the circle form the user.
- Calculate the product
- Print the final result.
Example
import java.util.Scanner; public class CircumfrenceOfCircle { public static void main(String args[]){ int radius; double circumference; Scanner sc = new Scanner(System.in); System.out.println("Enter the radius of the circle ::"); radius = sc.nextInt(); circumference = Math.PI*2*radius; System.out.println("Circumference of the circle is ::"+circumference); } }
Output
Enter the radius of the circle:: 55 The circumference of the circle is::345.57519189487726
- Related Articles
- Program to find Circumference of a Circle in C++
- The circumference of a circle is equal to $72 pi$. Find the radius of this circle.
- Java program to find the area of a circle
- Java Program to Find the Perimeter of a Circle
- Find the circumference of circle with radius. 6.4cm.
- If the radius of a circle is $7 cm$. find the circumference of the circle.
- If the radius of a circle is $49 cm$, find the circumference of the circle.
- If the radius of a circle is $77 cm$, find the circumference of the circle.
- Find the circumference of a circle whose diameter is $10.5 m$.
- The circumference of a circle exceeds the diameter by 16.8 cm. Find the circumference of the circle.
- Find the circumference and area of a circle of radius 4.2 cm.
- Find the Area of a Circle in Java Program
- If the circumference of a circle is $176 cm$, find its radius.
- Find the circumference of a circle whose area is $301.84 cm^2$.
- Find the area of circle whose circumference is $276 cm$.

Advertisements