_1_normal

package
v0.0.0-...-24b7180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Multiply

func Multiply(a, b int) int
Example
result := Multiply(3, 5)
Output:

15
Example (NotFP)
inputs := []int{1, 2, 3, 4, 5}

var result int
for index, thisValue := range inputs {
	if index == 0 {
		result = thisValue
		continue
	}

	result = Multiply(result, thisValue)
}
Output:

120

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL