Untitled
unknown
c_cpp
a year ago
343 B
7
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;
}
Editor is loading...
Leave a Comment