Quote Originally Posted by jcb121 View Post
any idea on what I can use instead of int?
Use 'float' - not the most memory efficient way to do it but that's not an issue here. Also you might find it helpful to include math.h.

Also since those are currently all ints, you might be introducing a big rounding error with pi.