0

how to print, odd, even, factorial, prime, fubonacci, together?

18th Jul 2016, 1:27 AM
Chenga Tsering
Chenga Tsering - avatar
2 ответов
0
You just iterate over the range of numbers you want as input and in the loop you call functions to give you the result of the even/odd test, factorial, etc.
18th Jul 2016, 1:38 AM
Stefan
Stefan - avatar
0
fill a container with 1 to N use for_each (in <algorithm>) with function that finds odd,even,factorial,prime,fibonacci output them
18th Jul 2016, 4:45 AM
_Geometry dash_ _Roh_ (AKA NovaRate0315)
_Geometry dash_ _Roh_ (AKA NovaRate0315) - avatar