#include #define MAX 2 // When ever the computer sees MAX it counts it as 2. int main() { int base,i,input,number[MAX]; // calling our integers. for(i=0;i(base-1)) { number[MAX-1]=0;// when MAX-1 reaches the base number set it = 0 number[MAX-2]++;// when MAX-1 reaches the base number add 1 to MAX-2. } } return(0); }