Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Prob2 {
- public static void main(String[] args) {
- double r;
- r=4.0;
- System.out.println("The circumference of the circle with radius " + r + " is " + 2*r*3.14 + " and its area is " + r*r*3.14 + ".");
- }
- }
Add Comment
Please, Sign In to add comment