Advertisement
NinaIvanova

krug

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