Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- 1. 宣告3個 lon; 整數, 印出三數乘積
- 2. 宣告3個 double 小數, 印出三數乘積
- */
- public class HW3 {
- public static void main (Strings [] args) {
- long a = 920;
- long b = 1000;
- long c = 1500;
- long sum = a * b c;
- System.out.println(sum);
- double e = 99.3;
- double f = 50.5;
- double g = 10.77;
- double sum1 = e * f g;
- System.out.println(sum1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement