#include #include int main() { int a, b, c, d, e, f, g, h, i, j; int sizeX, sizeY; printf("Enter the size of X array: "); scanf("%d", &sizeX); printf("Enter the size of Y array: "); scanf("%d", &sizeY); int X[sizeX]; int Y[sizeY]; for(int z = 0; z < sizeX; z++) { printf("Element[%d]: ", z); scanf("%d", &X[z]); } for(int z = 0; z < sizeY; z++) { printf("Element[%d]: ", z); scanf("%d", &Y[z]); } printf("Enter the a value: "); scanf("%d", &a); printf("Enter the b value: "); scanf("%d", &b); printf("Enter the c value: "); scanf("%d", &c); printf("Enter the d value: "); scanf("%d", &d); printf("Enter the e value: "); scanf("%d", &e); printf("Enter the f value: "); scanf("%d", &f); printf("Enter the g value: "); scanf("%d", &g); printf("Enter the h value: "); scanf("%d", &h); printf("Enter the i value: "); scanf("%d", &i); printf("Enter the j value: "); scanf("%d", &j); int nest1 = 1, nest2 = 0, nest3 = 0, nest4 = 1, nest5 = 0; for(int z5 = a; z5 < b; z5++) { for(int z4 = c; z4 < d; z4++) { for(int z3 = e; z3 < f; z3++) { for(int z2 = g; z2 < h; z2++) { for(int z = i; z < j; z++) { if(z >= sizeX || z >= sizeY) continue; // Dizinin boyutlarından büyük indeksleri atla nest1 = nest1 * ((X[z] + Y[z]) * (X[z] + Y[z])); } nest2 = nest2 + nest1; } nest3 = nest3 + nest2; } nest4 = nest4 * nest3; } nest5 = nest5 + nest4; } int u = 0; for(int z = 0; z < sizeX; z++) { if(X[z] > 7) { u += X[z]; } } int wx = 0, wy = 0; for(int z = 0; z < sizeX; z++) { if(X[z] < 0) { wx += X[z]; } } for(int z = 0; z < sizeY; z++) { if(Y[z] < 0) { wy += Y[z]; } } int w = wx + wy; int sumX = 0, sumY = 0; for(int z = 0; z < sizeX;