Menu
Coddy logo textTech

Recap Challenge #1

Lesson 10 of 19 in Coddy's Functions and Pointers in Golang course.

challenge icon

Challenge

Easy

Create 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