public class Cmain {
public static void main(String[] args) {
int a = 10;1
int b = 2;1
int c = 0;1
c = a + b;
System.out.printf("%d + %d = %dです\n", a, b, c);2
c = a - b;
System.out.printf("%d - %d = %dです\n", a, b, c);3
c = a * b;
System.out.printf("%d * %d = %dです\n", a, b, c);4
c = a / b;
System.out.printf("%d / %d = %dです\n", a, b, c);5
}
}
|