/wowoutsystems

Simple function to print a range of numbers, printing strings on the indicated multiples.

Primary LanguagePythonMIT LicenseMIT

wowoutsystems

Simple function to print a range of numbers, printing strings on the indicated multiples.

To run the function, just call it following the parameters below:

LoktarOgar(minNum, maxNum, multiple1, multiple2, string1, string2)

Where:

minNum: The first number that will be printed.

maxNum: The last number that will be printed.

multiple1: Define the multiple that will print the string1.

multiple2: Define the multiples that will print the string2.

string1: An string that will be printed instead of the number when the number is a multiple of multiple1.

string2: An string that will be printed instead of the number when the number is a multiple of multiple2.

Example:

LoktarOgar(1, 100, 3, 5, 'Loktar', 'Ogar')