Menu
Coddy logo textTech

Number Rotation

Lesson 4 of 24 in Coddy's Golang Challenges - Level 1 course.

challenge icon

Challenge

Easy

Write 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
0

The 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