It's the same problem as your other code - integer division.
15 / 8 = 1.875, but since the variables are integers, only the integer part is used: 15 / 8 = 1
You then multiply that result by 100, which (unsurprisingly) gives a final result of 100.
You then store that final result in a double, but it's too late - you've already lost the fractional part at step 1.
You need to convert one of the values to a floating-point type before the division:
medie_sim = ((double)totalsim / totalsimyes) * 100;
// or:
// medie_sim = (totalsim / (double)totalsimyes) * 100;
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer