回答編集履歴
1
質問内容変更に対する対応
test
CHANGED
@@ -33,3 +33,55 @@
|
|
33
33
|
public static void main(String [] args){
|
34
34
|
|
35
35
|
```
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
■2021/10/11 17:45編集済みのソースに対する指摘:
|
40
|
+
|
41
|
+
```java
|
42
|
+
|
43
|
+
class Aaaaa2{
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
public Debug2(){
|
48
|
+
|
49
|
+
Scanner son=new Scanner(system.in);
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
while(false){
|
54
|
+
|
55
|
+
System.out.prinf("二つの整数a b=");
|
56
|
+
|
57
|
+
int a =scn.nextlnt();
|
58
|
+
|
59
|
+
int b =scn.nextInt();
|
60
|
+
|
61
|
+
if(a=0 && b=0)break;
|
62
|
+
|
63
|
+
int wa=a+b;
|
64
|
+
|
65
|
+
int sa=a-b;
|
66
|
+
|
67
|
+
int seki=a*b;
|
68
|
+
|
69
|
+
int shou=a/b;
|
70
|
+
|
71
|
+
int amari=a%b;
|
72
|
+
|
73
|
+
System.out.println("和,差,積,商,余り"="+wa+","+sa+","+shou+","+seki+","+amari+");
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
} // <- 今度はここで閉じかっこ書きすぎやで。この行から下はclass Aaaaa2の定義の外におるで。
|
80
|
+
|
81
|
+
public static void main(String [] args){
|
82
|
+
|
83
|
+
new Aaaaa2();
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
```
|