Recap Challenge #1
Lesson 10 of 19 in Coddy's Functions and Pointers in Golang course.
Challenge
EasyCreate a function called <strong>operateNumbers</strong> that takes two parameters as integers.
- If the first number equals the second, print
<strong>"numbers are equal"</strong>. - If the first number is greater than the second, subtract the second number from the first.
- If the first number is less than the second, multiply them.
Try it yourself
import "fmt"
// Write Your Function Here
All lessons in Functions and Pointers in Golang
1Introduction
Introduction4Rebuild Go Strings Functions
Strings in GolangJoin FunctionContains FunctionIndex FunctionRecap Challenge #1