Java tutorial
//package com.java2s; public class Main { static int calculateRadius(int count, float length) { return (int) ((count + 1) * length / Math.PI); } }