given 2 unsigned ints a and b, return 1 unsigned int = a/b, rounded to nearest int without float operation
Anonymous
the round up operation is not useful to find the"nearest int" you could use: ((a%b)>=(b-(a%b)))?(a/b)+1:(a/b)
Check out your Company Bowl for anonymous work chats.