#include
#include
using namespace std;
void inmas(int* ms,int n) {
for (int i=0; i>ms[i];
}
float smas(int* ms,int n) {
int s=0;
for (int i=0; i return float(s);
}
void rezm(int* a, int* b, float* c, float* s, int n) {
for (int i=0; i c[i]=*s/(a[i]+b[i]);
}
int main() {
int n;
cout<<"n = "; cin>>n;
int a[n],b[n];
float c[n];
float s;
cout<<"massiv a: ";<br> inmas(a,n);
cout<<"massiv b: ";<br> inmas(b,n);
s=smas(a,n);
cout<<"summa = "<<s<<endl;<br> rezm(a,b,c,&s,n);
cout<<"massiv c: ";<br> for (int i=0; i cout<<setprecision(3)<<c[i]<<" ";<br> cout<<endl;<br> system("pause");
return 0;
}
n = 8
massiv a: 1 2 3 4 5 6 7 8
massiv b: 5 6 7 8 9 10 11 12
summa = 36
massiv c: 6 4.5 3.6 3 2.57 2.25 2 1.8