public class Solution {
public static void main(String[] args) {
printCircleCircumference(5);
}
public static void printCircleCircumference(int radius) {
radius = 5;
double pi = 3.14;
double C = 2*pi*radius;
System.out.println(C);
package com.codegym.task.task01.task0129;
/*
Calculate the circumference of a circle
*/
public class Solution {
public static void main(String[] args) {
printCircleCircumference(5);
}
public static void printCircleCircumference(int radius) {
radius = 5;
double pi = 3.14;
double C = 2*pi*radius;
System.out.println(C);
}
}