Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class CircumferenceOfCircle {
public static void circumference(double radius){
double pi = 3.14;
double circumference = 2*pi*radius;
System.out.println("Area of circumference with radius="+radius + " is: " + circumference);
public static void main(String[] args) {
double radius = 4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment