Number Rotation
Lesson 4 of 24 in Coddy's Golang Challenges - Level 1 course.
Challenge
EasyWrite a function that will take two integer values: the first will be a number, and the second will be a rotation step. For example:
If the number is 20 and the rotation step is 4, the output should be:
20
16
12
8
4
0The function does not return anything; it just uses the print function.
Try it yourself
import "fmt"
func rotateNumbers() {
}All lessons in Golang Challenges - Level 1
1Introduction
Introduction2Play With Numbers
Sum And DivideGenerate PatternNumber RotationEven and Divisible NumbersDiamond PatternAbundant NumberCheck a Number