simple calculator


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 64M

Authors:
Problem type
Allowed languages
Java 19, Java 8

題目說明

請撰寫一個程式,計算並輸出以下四則運算的結果:

12 + 5  
12 - 5  
12 * 5  
12 / 5

除法請保留小數點,其餘以整數表示。

範例

10 + 5  
10 - 5  
10 * 5  
10 / 5

範例輸出

15
5
50
2.0

Comments

There are no comments at the moment.