Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
int i = 0;i++; //i is now 1;i += i // i is now 2;i += i // i is now 4;
int power(int value, int loops){int numloop;int finalvalue = 0;if (loops > 0) { finalvalue = 1; for (numloop = 0; numloop < loops; numloop++) { finalvalue *= value; }}return finalvalue;}
#include "math.h"