Advertisement
DanikYakush

Task4

Jul 1st, 2022
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Task4 {
  4. public static void main(String[] args) {
  5. double x = 123.321;
  6. double y = (x * 1000) % 1000 + (int) x / 1000.0;
  7. System.out.println(y);
  8. }
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement