1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
void main()
{
setlocale(LC_ALL, "Russian");
int i, x1, x2, x3, x4;
for (i=0; i<10; i++)
{
cout <<"значение для Х"<<i+1<<endl;
x1=rand() %100;
cout<<"x1 = "<<x1<<endl;
x2=rand() %100;
cout<<"x2 = "<<x2<<endl;
x3=rand() %100;
cout<<"x3 = "<<x3<<endl;
x4=rand() %100;
cout<<"x4 = "<<x4<<endl;
y[i]=x1*sin(x2)+x3*sin(x3);
endl;
}
for (i=0; i<10; i++)
cont<<"Значение Y"<<i+1<<" = "<< y[i]<<"; ";
}
getchar()
return 0;