Yeah i mean like this :
A-B = 10, A-C = 25, A-D = 30, A-E = 40, B-C = 30, B-D = 25, B-E = 40, C-D = 10, D-E = 15, C-E = 15
cout<<A[i]<< '-' <<A[j] << " = 10";
Is there some kind of connection between those numbers and the letters? If there isn't, you'll have to hard code the values yourself.
1 2 3 4 5 6 7 8 9 10
//Make an array to hold all the values you want to print:
int arr[10]{ 10, 25, 30, 40, 30, 25, 40, 10, 15, 15 };
int main()
{
//Imagine your code is here and the for-loops
cout << A[i] << '-' << A[j] << " = " << arr[i];
}
As long as you implement it correctly this should work.