proyect

#include<stdio.h> #include <stdlib.h> int main() { printf("digite tamaño del arreglo\n"); scanf("%d", &M); int A[M],B[M], S[M], D[M], P[M]; for (int i=0; i<=M; i++){ S[i]= A[i]+B[i]; D[i]= A[i]-B[i]; P[i]= A[i]*B[i]; } for (int i=0; i<=M; i++){ printf(" suma en la posicion %d = %d \n",i, S[i]); printf(" diferencia en la posicion %d = %d \n",i, D[i]); printf(" producto en la posicion %d = %d \n",i, P[i]); } system ("pause"); return (0); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.