@newb_programmer
237 / 237 / 19
Регистрация: 03.09.2011
Сообщений: 557
|
09.10.2013, 19:03
|
|
Dima_L1NK,
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #include <cstdlib>
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
const int size=5;
double arr[size]={2,6,9,10,15};
for (int i=0;i<size;i++) {
cout<<"SqRoot of element #"<<i<<"= "<<sqrt(arr[i])<<"\n";
cout<<"arr["<<i<<"]^2="<<pow(arr[i],2)<<"\n";
}
system("pause");
return 0;
} |
|
1
|