Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "log"
- )
- func divmod(a int, b int) (int, int) {
- return a / b, a % b
- }
- func main() {
- m, n := divmod(5, 3)
- if !(m == 1) {
- log.Fatal("Wrong value m")
- }
- if !(n == 2) {
- log.Fatal("Wrong value n")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement