डाउनलोड पी.डी.एफ. ई-बुक्स
C++ - Addition Of Two Arrays

विवरण :

कोई विवरण नहीं है |


सोर्स कोड :

#include 
using namespace std;

int main(){

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

cout<<"Enter 5 nos of 1st array"<>arr1[i];
}

cout<<"Enter 5 nos of 2nd array"<>arr2[i];
}

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

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

cout<<"Addition of two arrays"<

आउटपुट :

Enter 5 nos of 1st array
1
2
3
4
5
Enter 5 nos of 2nd array
1
2
3
4
5
Addition of two arrays
2
4
6
8
10