0
how to print, odd, even, factorial, prime, fubonacci, together?
2 Respostas
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.
0
fill a container with 1 to N
use for_each (in <algorithm>) with function that finds odd,even,factorial,prime,fibonacci
output them