Mathematica has a function called Range[] that does the following:
Range[0, 10] Range[-10, 0]
Ant he prints:
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10} {-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0}
Does C ++ have such a function?
c ++
Billy rubina
source share