• Stars
    star
    1
  • Language
  • Created almost 4 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

#include<iostream> using namespace std; int main() { int arr1[5], arr2[5], sub[5], i,j,k, n =3; cout << "Enter elements of first array" << endl; for (i = 0; i < n; i++) cin >> arr1[i]; cout << "Enter elements of second array" << endl; for (j = 0; j < n; j++) cin >> arr2[j]; cout << "Subtaction of elements of the arrays:" << endl; for(k = 0; k < n; k++) { sub[k] = arr1[k] - arr2[k]; cout << sub[k] << endl; } return 0; } You sent Yesterday at 5:29 AM