good day, im having difficulty understanding the problem "cannot convert double to int for argument". sometimes when i change something and runs, it give a sum of 1. im new and and help would be appreciated.
if(operation==1){
int total =0;///create a variable
int size = 4;
for(int x=0;x<size;x++){
cout<<"Enter Value " <<x+1 <<": ";
cin>>num[x];
///add(num,x); call the function outside the loop
}
total = add(num,size);
cout<<"the Sum is: " <<total<<endl;
}