Addition Of Two Arrays:



main()
{
    int r[5],p[5],s;
    int k,m;

    clrscr();

    s=0;
    for(k=0;k<=4;k++)
    {
        printf("Enter the Number : ");
        scanf("%d",&r[k]);
    }
    for(m=0;m<=4;m++)
    {
        printf("\n Enter the Number : ");
        scanf("%d",&p[m]);
    }
    for(m=0;m<=4;m++)
    {
        s=r[m]+p[m];
        printf("\n Total is %d",s);
    }
getch();
}

Output: