**Area of a circumference = 2****πR**

**Where π = 3.14 and R = radius of circle**

**Example**:

Radius = 4.0 Area = 2*π*radius = 2*3.14*4 = 25.12

**Java Code:**

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

Learn more about bidirectional Unicode characters

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; | |

circumference(radius); | |

} | |

} |

**Output:**

Area of circumference with radius=4.0 is: 25.12