Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Application
- {
- public static void main(String[] arguments) {
- Float a;
- Scanner input;
- input = new Scanner(System.in);
- System.out.print("Input radius: ");
- a = input.nextFloat();
- System.out.println("The diameter is " + 2*a + ".");
- System.out.println("The circumference is " + 2*a*Math.PI + ".");
- System.out.println("The diameter is " + Math.PI*a*a + ".");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement