Monday, January 16, 2012

C Programming help please?

Actually it should be result = 1 and not result = base. Otherwise, it'll be calculating base^(exponent + 1) instead of base^exponent.

No comments:

Post a Comment