摘要: 第一种方法 import java.util.*; class Main { public static void main(String[] args){ //Create a scanner Scanner input = new Scanner(System.in); //Prompt the 阅读全文
posted @ 2022-05-19 20:29 Scenery_Shelley 阅读(23) 评论(0) 推荐(0)
摘要: 从大到小添加数字没有从小到大添加数字精确 在大数之前先增加小数是减小误差的一种方法 import java.util.*; class Main { public static void main(String[] args){ //Initialize sum float sum = 0; //A 阅读全文
posted @ 2022-05-19 20:16 Scenery_Shelley 阅读(30) 评论(0) 推荐(0)
摘要: import java.util.*; class Main { public static void main(String[] args){ //Display the table heading System.out.println(" Multiplication Table"); //Di 阅读全文
posted @ 2022-05-19 19:58 Scenery_Shelley 阅读(20) 评论(0) 推荐(0)