Multiplay two array

C Program to Multiplay two array : -

Program : -

#include<stdio.h>
#include<conio.h>
#include<string.h>
 void main()
 {
    int a[5],b[5],c[5],i;
    clrscr();
    puts("Enter the first array element :");
    for(i=0;i<5;i++)
    {
        scanf("%d",&a[i]);
    }

    puts("Enter the second array element :");
    for(i=0;i<5;i++)
    {
        scanf("%d",&b[i]);
    }

    puts("The third array element is :");
    for(i=0;i<5;i++)
    {
        c[i]=a[i]*b[i];
        printf("%d  ",c[i]);
    }
    getch();
 }

 

Output : -

Enter first array element : 1 2 3 4 5

Enter second array element : 5 4 3 2 1

The third array element is : 5 8 9 8 5