Untitled

mail@pastecode.io avatar
unknown
c_cpp
5 months ago
231 B
1
Indexable
#include <iostream>
#include <array>

int main()
{
    std::array< double, 5 > numbers = { 7.5, 3.2, 15.0, 17.2, -3.3 };

    for (const auto& n : numbers)
    {
        std::cout << n << ", ";
    }

    return 0;
}
Leave a Comment