#include "defs.h" scale(a,b,c) { float f; f=(float)a*(float)b; if(c) return((int)(f/(float)c)); else return(0); }