Calculate A B C
Submit solution
Points:
10 (partial)
Time limit:
1.0s
Memory limit:
64M
Author:
Problem type
Allowed languages
Java 19, Java 8
題目說明
請將輸入的三個浮點數做以下計算,並輸出結果。
a + b / c
輸入值的格式
三個浮點數:a、b、c
輸出值的格式
依題目要求計算後的結果。
參考程式碼
import java.util.Scanner;
public class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}sample input1
1.0 2.0 2.0sample output1
2.0sample input2
4.0 4.0 2.0sample output2
6.0
Comments