Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Basic Maths operation
- println("5 + 6 => " + (5 + 6))
- println("5 - 6 => " + (5 - 6))
- println("5 * 6 => " + (5 * 6))
- println("5 / 6 => " + (5.intdiv(6))) //Look out for the method that is there in the number
- println("5 % 6 => " + (5 % 6))
- //Floating Point operations
- println("5.1 + 6.1 => " + (5.1.plus(6.1))) //Methods can be replaced with operators also
- println("5.1 - 6.1 => " + (5.1.minus(6.1)))
- println("5.1 * 6.1 => " + (5.1.multiply(6.1)))
- println("5.1 / 6.1 => " + (5.1 / 6.1))
Add Comment
Please, Sign In to add comment