Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Krug1 {
- public static void main(String[] args) {
- Scanner scan = new Scanner (System.in);
- double R = scan.nextDouble();
- double C = 2 * 3.14 * R;
- double S = 3.14 * R * R;
- System.out.println("R:" + R);
- System.out.println("C:" + C);
- System.out.println("S:" + S);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment