teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

質問内容変更に対する対応

2021/10/11 09:00

投稿

tkturbo
tkturbo

スコア5572

answer CHANGED
@@ -15,4 +15,30 @@
15
15
  }
16
16
  // **<-ここに閉じかっこ(})が足りとらんがな。。。**
17
17
  public static void main(String [] args){
18
+ ```
19
+
20
+ ■2021/10/11 17:45編集済みのソースに対する指摘:
21
+ ```java
22
+ class Aaaaa2{
23
+
24
+ public Debug2(){
25
+ Scanner son=new Scanner(system.in);
26
+
27
+ while(false){
28
+ System.out.prinf("二つの整数a b=");
29
+ int a =scn.nextlnt();
30
+ int b =scn.nextInt();
31
+ if(a=0 && b=0)break;
32
+ int wa=a+b;
33
+ int sa=a-b;
34
+ int seki=a*b;
35
+ int shou=a/b;
36
+ int amari=a%b;
37
+ System.out.println("和,差,積,商,余り"="+wa+","+sa+","+shou+","+seki+","+amari+");
38
+ }
39
+ }
40
+ } // <- 今度はここで閉じかっこ書きすぎやで。この行から下はclass Aaaaa2の定義の外におるで。
41
+ public static void main(String [] args){
42
+ new Aaaaa2();
43
+ }
18
44
  ```