I know that C++ provides us with a ceil function. For practice, I was wondering how can we implement the ceil function in C++. The signature of the method is public static
Try this...
int ceil(float val) { int temp = val * 10; if(val%10) return (temp+1); else return temp; }