I\'m trying to divide two integers and multiply by 100 but it keeps giving only 0 or 100. Can someone help me?
int x= (a/b)*100;
if a w
Simplest, most effective way I found:
double x = (double) a / (double) b