How to Write a Program That Exponentiates using C