题解 | #牛牛的圆#

牛牛的圆

http://www.nowcoder.com/practice/75a202e826d048a39824ec694b5ce7e3

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        System.out.printf("%.2f", 3.14 * (double) num * (double) num);
    }
}

全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务