i need help
this code is not running so can someone please check to see where am wrong im a beginner so its really hard for me this is the code #include<iostream> using namespace std; int main() { float ans[3]; int a[3]; int b[3]; //code for accepting user input for (int i=0;i<3;i++){ cout<<"enter a[i]"; cin>>a[i]; } for(int i=0;i<3;i++){ cout<<"enter b[i]"; cin>>b[i]; } for(i=0;i<3;i++){ ans[i]=a[i]+b[i]; cout<<"the sum of the array elements is:"<<ans<<endl; } for(i=0;i<3;i++){ ans[i]=a[i]-b[i]; cout<<"the difference of the array elements is:"<<ans<<endl; }for(i=0;i<3;i++){ ans[i]=a[i]*b[i]; cout<<"the product of the array elements is:"<<ans<<endl; }for(i=0;i<3;i++){ ans[i]=a[i]/b[i]; cout<<"the division of the array elements is:"<<ans<<endl; } return 0; }