Addition Of Two Arrays

in Hindi - Addition Of Two Arrays

not yet

Source Code :

RUN#include <iostream>
using namespace std;

int main(){

int arr1[5], arr2[5], arr3[5], i;

cout<<"Enter 5 nos of 1st array"<<endl;

for( i=0; i<5; i++){

cin>>arr1[i];
}

cout<<"Enter 5 nos of 2nd array"<<endl;

for( i=0; i<5; i++){

cin>>arr2[i];
}

for( i=0; i<5; i++){

arr3[i] = arr1[i] + arr2[i] ;
}

cout<<"Addition of two arrays"<<endl;

for( i=0; i<5; i++){

cout<<arr3[i]<<endl;
}

return 0;
}