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