// George Vazquez
// CPSC1011 
// Lab 4
// Section 003
// February 17, 2023

#include <stdio.h>
#include <stdlib.h>

int main (void)
{
	// Variables
	int array1[20];
	int array2[20];
	int i;
	int result;

	//The user is to enter 20 integers. 
	printf ("Enter 20 integers: \n\n");
	printf ("array1: \n");

	// This loop is to continue until 20 integers have been entered. 
	for (i = 1; i < 20; i++)
		scanf ("%i\n", &array1[20]);

	// This loop for the second array makes 20 random integers. 
	printf ("\narray2: \n");
	for ( i = 0; i < 20; i++)
		printf ("%i\n", rand() % 50 + 1);


	// This makes the inner product. 
	result = array1[20] + array2[20]; 
	printf ("The inner product is: %i", result);


	return 0;
}

