#include <stdio.h>

#define LONG 3

int productoPunto(int a[], int b[]){
	int j, result=0;

	for(j=0; j<LONG; j++){
		result += a[j]*b[j];
	}
	return result;
}

int main(){
	int a[LONG], b[LONG], i;

	for(i=0; i<LONG; i++){
		a[i] = i;
		b[i] = i;
	}
	printf("El producto pto = %i\n", productoPunto(a,b));
}

