int tm, sb1, sb2,ob; // Change them to float
p=ob/ (tm*100); // added ( ) around tm*100
12
// C-style cast p = (float)ob / (tm*100);