From f4aefe3ba7fe19110bef2bf7d072ceeb0c0b79ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BF=8A=E5=85=B4?= <3250103239@qq.com> Date: Thu, 15 Dec 2022 18:54:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B9=9D=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...350\241\250and\347\205\244\346\260\224.md" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "14 \346\235\216\344\277\212\345\205\264/20221215 \344\271\235\344\271\235\344\271\230\346\263\225\350\241\250and\347\205\244\346\260\224.md" diff --git "a/14 \346\235\216\344\277\212\345\205\264/20221215 \344\271\235\344\271\235\344\271\230\346\263\225\350\241\250and\347\205\244\346\260\224.md" "b/14 \346\235\216\344\277\212\345\205\264/20221215 \344\271\235\344\271\235\344\271\230\346\263\225\350\241\250and\347\205\244\346\260\224.md" new file mode 100644 index 0000000..49bc3ac --- /dev/null +++ "b/14 \346\235\216\344\277\212\345\205\264/20221215 \344\271\235\344\271\235\344\271\230\346\263\225\350\241\250and\347\205\244\346\260\224.md" @@ -0,0 +1,42 @@ +#### 倒叙输出乘法表 + +```java +public class D1 { + public static void main(String[] args) { + for(int i=9;i>=1;i--){ + for(int j=i;j>=1;j--){ + System.out.print(j + "x" + i + "=" + i*j + "\t"); + } + System.out.println(); + } +} +} + +``` + +### 煤气 + +```java +public class D2 { + public static void main(String[] args) { + +// 设二档为x,三档为(100-x) +// 方程为x*4.05+(100-x)*5.06=445.40 + + for(int x=1;x<=100;x++){ + if(x*4.05+(100-x)*5.06==445.40){ + System.out.println("二档为" + x + "三档为" + (100-x)); + break; + } + } + } +} +``` + + + +```java +\t 制表符; +\n 换位符 +``` + -- Gitee