lundi 18 octobre 2021

Creating loops with odd numbers that are divisible by another number

I've the following question:

I want to write a function that receives two integers: start and finish and should return the number of numbers between these integers start and the integer finish (including this number) that are divisible by 2 and are even.

for example multi3_odd(1,10) returns 4

Aucun commentaire:

Enregistrer un commentaire