Untitled
unknown
plain_text
a year ago
280 B
9
Indexable
#include <iostream>
using namespace std;
int main()
{
float tab[5];
float a=23, b=12.1,c= 53.5, d=42.8, e=63.7;
tab[0]= a * a;
tab[1] = b * b;
tab[2] = c * c;
tab[3] = d * d;
tab[4] = e * e;
for (int i = 0; i < 5; i++)
{
cout << tab[i]<<endl;
}
}Editor is loading...
Leave a Comment