Hey there,
I see you want to calculate the percentage of Likes and Dislikes:
Here check this example:
int likes = 80;
int dislikes = 30;
int c = likes + dislikes;
double likesPerc = ((double)likes/ c) * 100;
double dislikesPerc = ((double)dislikes / c) * 100;
Hope it helps
Azee...