package com.company; import java.text.DecimalFormat; public class Main { public static void main(String[] args) { // write your code here double h=10*3*3/2; DecimalFormat df=new DecimalFormat("#.00"); System.out.println("height="+df.format(h)); } }
实验2-1-3 计算物体自由下落的距离
猜你喜欢
转载自www.cnblogs.com/zhuzehua/p/9669525.html
今日推荐
周排行