idastan97

CSCI152 L1 P2

Jan 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. public class Prob2 {
  2.     public static void main(String[] args) {
  3.         double r;
  4.         r=4.0;
  5.         System.out.println("The circumference of the circle with radius " + r + " is " + 2*r*3.14 + " and its area is " + r*r*3.14 + ".");
  6.     }
  7.    
  8. }
Add Comment
Please, Sign In to add comment