Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task4 {
- public static void main(String[] args) {
- double x = 123.321;
- double y = (x * 1000) % 1000 + (int) x / 1000.0;
- System.out.println(y);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement