Untitled

mail@pastecode.io avatar
unknown
c_cpp
5 months ago
343 B
0
Indexable
#include <iostream>

using namespace std;

int main()
{
    double numbers[] = { 7.5, 3.2, 15.0, 17.2, -3.3 };

    cout << "Liczby podniesione do kwadratu:\n";
    for (int i = 0; i < 5; ++i)
    {
        double square = numbers[i] * numbers[i];
        cout << square << ", ";
    }

    cout << "\n\n";

    return 0;
}
Leave a Comment