MilaDimitrovaa

Homework (Krug)

Oct 18th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Krug1 {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7.         Scanner scan = new Scanner (System.in);
  8.         double R = scan.nextDouble();
  9.         double C = 2 * 3.14 * R;
  10.         double S = 3.14 * R * R;
  11.         System.out.println("R:" + R);
  12.         System.out.println("C:" + C);
  13.         System.out.println("S:" + S);
  14.  
  15.     }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment