Circumference of circle
public class Solution { public static void main(String[] args) { Scanner ip = new Scanner(System.in); System.out.print("Enter radius: "); double radius = ip.nextDouble(); double circumference = 2 * 3.14 * radius; System.out.printf("Circumference is %.3f", circumference); ip.close(); } }