Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @author bvanchuhov
- */
- public class Div {
- public static void main(String[] args) {
- System.out.println(10 / 4); // 2
- System.out.println(10.0 / 4); // 2.5
- System.out.println(15 / 6); // 2
- System.out.println(15 % 6); // 3
- }
- }
Add Comment
Please, Sign In to add comment