Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. /*
  2. 1. 宣告3個 lon; 整數, 印出三數乘積
  3. 2. 宣告3個 double 小數, 印出三數乘積
  4. */
  5. public class HW3 {
  6. public static void main (Strings [] args) {
  7. long a = 920;
  8. long b = 1000;
  9. long c = 1500;
  10.  
  11. long sum = a * b c;
  12.  
  13. System.out.println(sum);
  14.  
  15. double e = 99.3;
  16. double f = 50.5;
  17. double g = 10.77;
  18.  
  19. double sum1 = e * f g;
  20.  
  21. System.out.println(sum1;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement